Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,11 +118,11 @@ print("Model loaded!")
|
|
118 |
|
119 |
# Create Gradio interface with chat
|
120 |
demo = gr.Interface(
|
121 |
-
fn=chat_response,
|
122 |
-
inputs=[gr.Textbox(label="Message"), gr.State()], #
|
123 |
-
outputs=gr.Textbox(label="Response"), #
|
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?",
|
@@ -132,5 +132,6 @@ demo = gr.Interface(
|
|
132 |
)
|
133 |
|
134 |
|
|
|
135 |
if __name__ == "__main__":
|
136 |
demo.launch(share=True) # Remove s
|
|
|
118 |
|
119 |
# Create Gradio interface with chat
|
120 |
demo = gr.Interface(
|
121 |
+
fn=chat_response, # The function to call
|
122 |
+
inputs=[gr.Textbox(label="Message"), gr.State()], # Message and history as inputs
|
123 |
+
outputs=[gr.Textbox(label="Response"), gr.State()], # Response and updated history as outputs
|
124 |
title="Admissions Agent Assistant",
|
125 |
+
description="Chat with an AI-powered admissions coordinator. The agent will maintain context of your conversation.",
|
126 |
examples=[
|
127 |
"I need help with addiction treatment",
|
128 |
"What insurance do you accept?",
|
|
|
132 |
)
|
133 |
|
134 |
|
135 |
+
|
136 |
if __name__ == "__main__":
|
137 |
demo.launch(share=True) # Remove s
|