Yoma
commited on
Commit
·
28bfaa9
1
Parent(s):
00acdae
updated gradio for 6.2
Browse files- chatbot_app.py +4 -4
chatbot_app.py
CHANGED
|
@@ -102,15 +102,15 @@ def respond(message, chat_history):
|
|
| 102 |
return "", chat_history, docs_for_display
|
| 103 |
|
| 104 |
# --- Gradio UI Definition ---
|
| 105 |
-
with gr.Blocks(
|
| 106 |
gr.Markdown("# 🛍️ Product Inquiry Chatbot")
|
| 107 |
gr.Markdown("Ask me anything about our products and I will do my best to answer based on the information I have.")
|
| 108 |
|
| 109 |
chatbot = gr.Chatbot(
|
| 110 |
height=550,
|
| 111 |
show_label=False,
|
| 112 |
-
avatar_images=("static/images/user.png", "static/images/bot.png")
|
| 113 |
-
bubble_full_width=False,
|
| 114 |
)
|
| 115 |
|
| 116 |
with gr.Row():
|
|
@@ -142,4 +142,4 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="slate", secondary_hue="blue"))
|
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
print("Starting Gradio app... Access it at http://127.0.0.1:7860")
|
| 145 |
-
demo.launch()
|
|
|
|
| 102 |
return "", chat_history, docs_for_display
|
| 103 |
|
| 104 |
# --- Gradio UI Definition ---
|
| 105 |
+
with gr.Blocks() as demo:
|
| 106 |
gr.Markdown("# 🛍️ Product Inquiry Chatbot")
|
| 107 |
gr.Markdown("Ask me anything about our products and I will do my best to answer based on the information I have.")
|
| 108 |
|
| 109 |
chatbot = gr.Chatbot(
|
| 110 |
height=550,
|
| 111 |
show_label=False,
|
| 112 |
+
avatar_images=("static/images/user.png", "static/images/bot.png")
|
| 113 |
+
#bubble_full_width=False,
|
| 114 |
)
|
| 115 |
|
| 116 |
with gr.Row():
|
|
|
|
| 142 |
|
| 143 |
if __name__ == "__main__":
|
| 144 |
print("Starting Gradio app... Access it at http://127.0.0.1:7860")
|
| 145 |
+
demo.launch(theme=gr.themes.Soft(primary_hue="slate", secondary_hue="blue"))
|