Shrees0507 commited on
Commit
c109243
·
verified ·
1 Parent(s): b508c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,12 +48,12 @@ def chatbot(input, history):
48
  raise Exception(str(e))
49
 
50
  # Define the Gradio chat interface
51
- def gradio_chat(input, history):
52
- response = chatbot(input, history)
53
  return response
54
 
55
  # Define Gradio inputs and outputs
56
- inputs = [gr.Textbox(lines=5, label="Input"), gr.Textbox(lines=5, label="History")]
57
  output = gr.Textbox(label="Response")
58
 
59
  # Create Gradio interface
 
48
  raise Exception(str(e))
49
 
50
  # Define the Gradio chat interface
51
+ def gradio_chat(input):
52
+ response = chatbot(input)
53
  return response
54
 
55
  # Define Gradio inputs and outputs
56
+ inputs = [gr.Textbox(lines=5, label="Input")]
57
  output = gr.Textbox(label="Response")
58
 
59
  # Create Gradio interface