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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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(lines=2, placeholder="Enter your message here..."),
123
- outputs=gr.Textbox(),
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?",
@@ -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