mrcuddle commited on
Commit
2b7fd8b
·
verified ·
1 Parent(s): 4edc1c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -31,8 +31,7 @@ def chatbot(message, history):
31
  # Append the response to the history
32
  history.append((message, response))
33
  return history, ""
34
-
35
- # Create the Gradio interface
36
  with gr.Blocks() as demo:
37
  gr.Markdown("## Chatbot using Transformers")
38
 
@@ -44,10 +43,10 @@ with gr.Blocks() as demo:
44
  txt = gr.Textbox(
45
  show_label=False,
46
  placeholder="Type your message here...",
47
- ).style(container=False)
48
 
49
  # Attach the chatbot function to the Textbox component
50
  txt.submit(chatbot, [txt, chatbot], [chatbot, txt])
51
 
52
  # Launch the Gradio interface
53
- demo.launch()
 
31
  # Append the response to the history
32
  history.append((message, response))
33
  return history, ""
34
+ # Create the Gradio interface
 
35
  with gr.Blocks() as demo:
36
  gr.Markdown("## Chatbot using Transformers")
37
 
 
43
  txt = gr.Textbox(
44
  show_label=False,
45
  placeholder="Type your message here...",
46
+ )
47
 
48
  # Attach the chatbot function to the Textbox component
49
  txt.submit(chatbot, [txt, chatbot], [chatbot, txt])
50
 
51
  # Launch the Gradio interface
52
+ demo.launch()