Spaces:
Runtime error
Runtime error
add application files
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ with gr.Blocks() as interface:
|
|
| 13 |
gr.Markdown("## RAG Law Chatbot")
|
| 14 |
|
| 15 |
chatbot = gr.Chatbot()
|
| 16 |
-
user_input = gr.Textbox(show_label=False, placeholder="Enter your law question...").style(container=False)
|
| 17 |
send_button = gr.Button("Send")
|
| 18 |
|
| 19 |
def chat_update(user_message, history):
|
|
@@ -25,4 +25,4 @@ with gr.Blocks() as interface:
|
|
| 25 |
send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
|
| 26 |
|
| 27 |
# Launch the Gradio interface
|
| 28 |
-
interface.launch()
|
|
|
|
| 13 |
gr.Markdown("## RAG Law Chatbot")
|
| 14 |
|
| 15 |
chatbot = gr.Chatbot()
|
| 16 |
+
user_input = gr.Textbox(show_label=False, placeholder="Enter your law question...") # Removed .style(container=False)
|
| 17 |
send_button = gr.Button("Send")
|
| 18 |
|
| 19 |
def chat_update(user_message, history):
|
|
|
|
| 25 |
send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
|
| 26 |
|
| 27 |
# Launch the Gradio interface
|
| 28 |
+
interface.launch()
|