Cioni223 commited on
Commit
e68f0e3
·
verified ·
1 Parent(s): 4e7cdf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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()], # 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?",
@@ -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