Update app.py
Browse files
app.py
CHANGED
|
@@ -60,15 +60,21 @@ def chat_handler(message, history):
|
|
| 60 |
return new_history, new_history
|
| 61 |
|
| 62 |
# Gradio UI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
chat_interface = gr.ChatInterface(
|
| 64 |
fn=chat_handler,
|
| 65 |
title="LangGraph Gemini Chatbot",
|
| 66 |
-
theme="soft"
|
| 67 |
-
retry_btn=None,
|
| 68 |
-
undo_btn=None,
|
| 69 |
-
additional_inputs=[],
|
| 70 |
)
|
| 71 |
|
|
|
|
| 72 |
# Launch app
|
| 73 |
if __name__ == "__main__":
|
| 74 |
chat_interface.launch()
|
|
|
|
| 60 |
return new_history, new_history
|
| 61 |
|
| 62 |
# Gradio UI
|
| 63 |
+
# chat_interface = gr.ChatInterface(
|
| 64 |
+
# fn=chat_handler,
|
| 65 |
+
# title="LangGraph Gemini Chatbot",
|
| 66 |
+
# theme="soft",
|
| 67 |
+
# retry_btn=None,
|
| 68 |
+
# undo_btn=None,
|
| 69 |
+
# additional_inputs=[],
|
| 70 |
+
# )
|
| 71 |
chat_interface = gr.ChatInterface(
|
| 72 |
fn=chat_handler,
|
| 73 |
title="LangGraph Gemini Chatbot",
|
| 74 |
+
theme="soft"
|
|
|
|
|
|
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
+
|
| 78 |
# Launch app
|
| 79 |
if __name__ == "__main__":
|
| 80 |
chat_interface.launch()
|