Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -119,10 +119,10 @@ print("Model loaded!")
|
|
119 |
# Create Gradio interface with chat
|
120 |
demo = gr.Interface(
|
121 |
fn=chat_response,
|
122 |
-
inputs=gr.Textbox(
|
123 |
-
outputs=gr.Textbox(),
|
124 |
title="Admissions Agent Assistant",
|
125 |
-
description="Chat with an AI-powered admissions coordinator.
|
126 |
examples=[
|
127 |
"I need help with addiction treatment",
|
128 |
"What insurance do you accept?",
|
@@ -131,5 +131,6 @@ demo = gr.Interface(
|
|
131 |
]
|
132 |
)
|
133 |
|
|
|
134 |
if __name__ == "__main__":
|
135 |
demo.launch(share=True) # Remove s
|
|
|
119 |
# Create Gradio interface with chat
|
120 |
demo = gr.Interface(
|
121 |
fn=chat_response,
|
122 |
+
inputs=[gr.Textbox(label="Message"), gr.State()], # Add State for chat history
|
123 |
+
outputs=gr.Textbox(label="Response"), # Single response output
|
124 |
title="Admissions Agent Assistant",
|
125 |
+
description="Chat with an AI-powered admissions coordinator.",
|
126 |
examples=[
|
127 |
"I need help with addiction treatment",
|
128 |
"What insurance do you accept?",
|
|
|
131 |
]
|
132 |
)
|
133 |
|
134 |
+
|
135 |
if __name__ == "__main__":
|
136 |
demo.launch(share=True) # Remove s
|