asigalov61 commited on
Commit
1d337e0
·
verified ·
1 Parent(s): 208cf4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -9,7 +9,6 @@ import torch
9
  import spaces
10
  import gradio as gr
11
 
12
- from x_transformer_1_23_2 import *
13
  import random
14
  import tqdm
15
 
@@ -18,12 +17,16 @@ import TMIDIX
18
 
19
  import matplotlib.pyplot as plt
20
 
 
 
 
 
21
  in_space = os.getenv("SYSTEM") == "spaces"
22
 
23
  # =================================================================================================
24
 
25
  @spaces.GPU
26
- def InpaintPitches(input_midi, input_num_of_notes, input_patch_number):
27
  print('=' * 70)
28
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
29
  start_time = reqtime.time()
 
9
  import spaces
10
  import gradio as gr
11
 
 
12
  import random
13
  import tqdm
14
 
 
17
 
18
  import matplotlib.pyplot as plt
19
 
20
+ from inference import PianoTranscription
21
+ from config import sample_rate
22
+ from utilities import load_audio
23
+
24
  in_space = os.getenv("SYSTEM") == "spaces"
25
 
26
  # =================================================================================================
27
 
28
  @spaces.GPU
29
+ def TranscribePianoAudio(input_audio):
30
  print('=' * 70)
31
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
32
  start_time = reqtime.time()