ambrosfitz commited on
Commit
03e0ef4
·
verified ·
1 Parent(s): 192371d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -40,11 +40,11 @@ def predict(message, history=[]):
40
  # Update history with the latest exchange
41
  history.append((message, full_message))
42
 
43
- # Set up the Gradio chat interface
44
  iface = gr.Interface(
45
  fn=predict,
46
- inputs=[gr.Textbox(label="Type your question here..."), gr.State(label="History")],
47
- outputs=[gr.Textbox(label="HistoryBot Responses"), gr.State()],
48
  title="HistoryBot Chat",
49
  description="Interact with HistoryBot, a specialized assistant for American History. Ask any historical questions to get detailed and nuanced answers.",
50
  allow_flagging="never"
 
40
  # Update history with the latest exchange
41
  history.append((message, full_message))
42
 
43
+ # Set up the Gradio interface
44
  iface = gr.Interface(
45
  fn=predict,
46
+ inputs=[gr.Textbox(label="Type your question here..."), gr.State()],
47
+ outputs=[gr.Textbox(), gr.State()],
48
  title="HistoryBot Chat",
49
  description="Interact with HistoryBot, a specialized assistant for American History. Ask any historical questions to get detailed and nuanced answers.",
50
  allow_flagging="never"