mojtabaa4 commited on
Commit
b4df127
·
1 Parent(s): 163e91e

add application files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()