Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,21 +104,22 @@ with gr.Blocks(title="Depression Training Simulator", theme=gr.themes.Soft()) as
|
|
| 104 |
# feedback_display = gr.Markdown("Starte ein Gespräch, um Feedback zu erhalten.")
|
| 105 |
|
| 106 |
# Event Bindings
|
|
|
|
| 107 |
send_btn.click(
|
| 108 |
fn=enhanced_chat_response,
|
| 109 |
inputs=[user_input, max_tokens, temperature, top_p],
|
| 110 |
-
outputs=[user_input, bot_response, chat_history
|
| 111 |
)
|
| 112 |
|
| 113 |
user_input.submit(
|
| 114 |
fn=enhanced_chat_response,
|
| 115 |
inputs=[user_input, max_tokens, temperature, top_p],
|
| 116 |
-
outputs=[user_input, bot_response, chat_history
|
| 117 |
)
|
| 118 |
|
| 119 |
reset_btn.click(
|
| 120 |
fn=reset_conversation,
|
| 121 |
-
outputs=[bot_response, chat_history
|
| 122 |
)
|
| 123 |
|
| 124 |
if __name__ == "__main__":
|
|
|
|
| 104 |
# feedback_display = gr.Markdown("Starte ein Gespräch, um Feedback zu erhalten.")
|
| 105 |
|
| 106 |
# Event Bindings
|
| 107 |
+
|
| 108 |
send_btn.click(
|
| 109 |
fn=enhanced_chat_response,
|
| 110 |
inputs=[user_input, max_tokens, temperature, top_p],
|
| 111 |
+
outputs=[user_input, bot_response, chat_history]
|
| 112 |
)
|
| 113 |
|
| 114 |
user_input.submit(
|
| 115 |
fn=enhanced_chat_response,
|
| 116 |
inputs=[user_input, max_tokens, temperature, top_p],
|
| 117 |
+
outputs=[user_input, bot_response, chat_history]
|
| 118 |
)
|
| 119 |
|
| 120 |
reset_btn.click(
|
| 121 |
fn=reset_conversation,
|
| 122 |
+
outputs=[bot_response, chat_history]
|
| 123 |
)
|
| 124 |
|
| 125 |
if __name__ == "__main__":
|