Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,19 +139,7 @@ with gr.Blocks(title="Gemini Audio Chatbot") as demo:
|
|
| 139 |
with gr.Row():
|
| 140 |
clear_btn = gr.Button("Clear Conversation")
|
| 141 |
|
| 142 |
-
|
| 143 |
-
text_input.submit(
|
| 144 |
-
process_text,
|
| 145 |
-
inputs=[text_input, history],
|
| 146 |
-
outputs=[response_text, history, audio_output]
|
| 147 |
-
).then(
|
| 148 |
-
display_history,
|
| 149 |
-
inputs=[history],
|
| 150 |
-
outputs=[chat_display]
|
| 151 |
-
).then(
|
| 152 |
-
lambda: "",
|
| 153 |
-
outputs=[text_input]
|
| 154 |
-
)
|
| 155 |
|
| 156 |
audio_input.change(
|
| 157 |
process_audio,
|
|
|
|
| 139 |
with gr.Row():
|
| 140 |
clear_btn = gr.Button("Clear Conversation")
|
| 141 |
|
| 142 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
audio_input.change(
|
| 145 |
process_audio,
|