Spaces:
Sleeping
Sleeping
asd
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def create_new_websocket_connection():
|
|
| 139 |
return client_id
|
| 140 |
|
| 141 |
if __name__ == "__main__":
|
| 142 |
-
with gr.Blocks(css=css) as demo:
|
| 143 |
gr.Markdown(f"# Realtime transcription demo")
|
| 144 |
with gr.Row():
|
| 145 |
with gr.Column():
|
|
@@ -156,8 +156,4 @@ if __name__ == "__main__":
|
|
| 156 |
audio_input.stream(send_audio_chunk, [audio_input, client_id], [output_textbox], stream_every=0.5, concurrency_limit=None)
|
| 157 |
demo.load(create_new_websocket_connection, outputs=[client_id])
|
| 158 |
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
while True:
|
| 162 |
-
time.sleep(1)
|
| 163 |
-
|
|
|
|
| 139 |
return client_id
|
| 140 |
|
| 141 |
if __name__ == "__main__":
|
| 142 |
+
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
| 143 |
gr.Markdown(f"# Realtime transcription demo")
|
| 144 |
with gr.Row():
|
| 145 |
with gr.Column():
|
|
|
|
| 156 |
audio_input.stream(send_audio_chunk, [audio_input, client_id], [output_textbox], stream_every=0.5, concurrency_limit=None)
|
| 157 |
demo.load(create_new_websocket_connection, outputs=[client_id])
|
| 158 |
|
| 159 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|