Spaces:
Sleeping
Sleeping
NikitaSrivatsan
commited on
Commit
•
866a431
1
Parent(s):
7b39cbc
Fixed output text box
Browse files
app.py
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from infer import infer
|
3 |
|
4 |
-
def greet(name):
|
5 |
-
return f'Hello {name}!!'
|
6 |
-
|
7 |
demo = gr.Interface(fn=infer,
|
8 |
inputs=gr.Audio(sources='upload', type='filepath'),
|
9 |
outputs='text')
|
|
|
1 |
import gradio as gr
|
2 |
from infer import infer
|
3 |
|
|
|
|
|
|
|
4 |
demo = gr.Interface(fn=infer,
|
5 |
inputs=gr.Audio(sources='upload', type='filepath'),
|
6 |
outputs='text')
|
infer.py
CHANGED
@@ -49,6 +49,7 @@ def infer(input_filename):
|
|
49 |
generated_text = postproc(generated_text)
|
50 |
print('=======================================')
|
51 |
print(generated_text)
|
|
|
52 |
|
53 |
if __name__ == '__main__':
|
54 |
infer('../MusicCaptioning/sample_inputs/sisters.mp3')
|
|
|
49 |
generated_text = postproc(generated_text)
|
50 |
print('=======================================')
|
51 |
print(generated_text)
|
52 |
+
return generated_text
|
53 |
|
54 |
if __name__ == '__main__':
|
55 |
infer('../MusicCaptioning/sample_inputs/sisters.mp3')
|