jonathang commited on
Commit
94d75fa
1 Parent(s): da299f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def process_and_play(text: str, file: gr.inputs.Audio, offset, time_signature) -
98
  output = BytesIO()
99
  wavfile.write(output, *file)
100
  output.seek(0) # Reset the file pointer to the beginning of the buffer
101
- sr, output_wav = solve(text, output, offset, time_signature) # Call the solve() function
102
  output = BytesIO()
103
  wavfile.write(output, sr, output_wav)
104
  output.seek(0) # Reset the file pointer to the beginning of the buffer
 
98
  output = BytesIO()
99
  wavfile.write(output, *file)
100
  output.seek(0) # Reset the file pointer to the beginning of the buffer
101
+ sr, output_wav = solve(text, output, int(offset), int(time_signature)) # Call the solve() function
102
  output = BytesIO()
103
  wavfile.write(output, sr, output_wav)
104
  output.seek(0) # Reset the file pointer to the beginning of the buffer