Spaces:
Sleeping
Sleeping
Commit
•
3d0b330
1
Parent(s):
0cd0e7d
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ def create_gradio_app(api_spec, api_url):
|
|
160 |
audio_file.write(audio_stream.getbuffer())
|
161 |
return gr.update(visible=False), gr.update(visible=True, value=filename), gr.update(visible=False), keys
|
162 |
else:
|
163 |
-
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True, value=output)
|
164 |
else:
|
165 |
raise gr.Error("The submission failed!")
|
166 |
return gr.Interface(fn=predict, inputs=inputs, outputs=outputs)
|
|
|
160 |
audio_file.write(audio_stream.getbuffer())
|
161 |
return gr.update(visible=False), gr.update(visible=True, value=filename), gr.update(visible=False), keys
|
162 |
else:
|
163 |
+
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True, value=output), keys
|
164 |
else:
|
165 |
raise gr.Error("The submission failed!")
|
166 |
return gr.Interface(fn=predict, inputs=inputs, outputs=outputs)
|