Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,14 +38,17 @@ demo = gr.Blocks()
|
|
| 38 |
|
| 39 |
with demo:
|
| 40 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 41 |
-
|
| 42 |
-
text2 = gr.Textbox()
|
| 43 |
-
|
| 44 |
b1 = gr.Button("Transcribe audio")
|
| 45 |
b2 = gr.Button("Process text")
|
| 46 |
|
| 47 |
b1.click(transcribe, inputs=audio, outputs=text1)
|
| 48 |
b2.click(process_text, inputs=text1, outputs=text2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
demo.launch()
|
| 51 |
|
|
|
|
| 38 |
|
| 39 |
with demo:
|
| 40 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 41 |
+
|
|
|
|
|
|
|
| 42 |
b1 = gr.Button("Transcribe audio")
|
| 43 |
b2 = gr.Button("Process text")
|
| 44 |
|
| 45 |
b1.click(transcribe, inputs=audio, outputs=text1)
|
| 46 |
b2.click(process_text, inputs=text1, outputs=text2)
|
| 47 |
+
|
| 48 |
+
text1 = gr.Textbox()
|
| 49 |
+
text2 = gr.Textbox()
|
| 50 |
+
|
| 51 |
+
|
| 52 |
|
| 53 |
demo.launch()
|
| 54 |
|