Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
44 |
iface = gr.Interface(
|
45 |
fn=predict,
|
46 |
-
inputs=[gr.Textbox(label="Type your question here..."), gr.State(
|
47 |
-
outputs=[gr.Textbox(
|
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"
|