Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -88,19 +88,6 @@ def process_audio(file_path):
|
|
88 |
return f"An error occurred: {str(e)}"
|
89 |
|
90 |
|
91 |
-
with gr.Blocks() as speech:
|
92 |
-
with gr.Row():
|
93 |
-
sr_outputs = gr.Textbox(label="Antwort")
|
94 |
-
with gr.Row():
|
95 |
-
sr_inputs = gr.Microphone(type="filepath")
|
96 |
-
sr_inputs.change(process_audio, inputs=sr_inputs, outputs=sr_outputs)
|
97 |
-
|
98 |
-
speech.launch()
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
"""
|
104 |
# Create the Gradio interface
|
105 |
with gr.Blocks(css=custom_css) as demo:
|
106 |
with gr.Row():
|
@@ -116,6 +103,24 @@ with gr.Blocks(css=custom_css) as demo:
|
|
116 |
|
117 |
# Launch the Gradio application
|
118 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
"""
|
120 |
|
121 |
|
|
|
88 |
return f"An error occurred: {str(e)}"
|
89 |
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
# Create the Gradio interface
|
92 |
with gr.Blocks(css=custom_css) as demo:
|
93 |
with gr.Row():
|
|
|
103 |
|
104 |
# Launch the Gradio application
|
105 |
demo.launch()
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
"""
|
111 |
+
with gr.Blocks() as speech:
|
112 |
+
with gr.Row():
|
113 |
+
sr_outputs = gr.Textbox(label="Antwort")
|
114 |
+
with gr.Row():
|
115 |
+
sr_inputs = gr.Microphone(type="filepath")
|
116 |
+
sr_inputs.change(process_audio, inputs=sr_inputs, outputs=sr_outputs)
|
117 |
+
|
118 |
+
speech.launch()
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
"""
|
125 |
|
126 |
|