Sanchit2207 commited on
Commit
9974a20
·
verified ·
1 Parent(s): bb1a8c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -44,6 +44,12 @@ def chatbot(user_input):
44
  reply = generate_reply(logic)
45
  return reply
46
 
47
- chatbot.launch()
 
 
 
 
 
 
48
 
49
 
 
44
  reply = generate_reply(logic)
45
  return reply
46
 
47
+ iface = gr.Interface(fn=chatbot,
48
+ inputs=gr.Textbox(lines=2, placeholder="Type your message..."),
49
+ outputs="text",
50
+ title="Three-Agent Hugging Face Chatbot",
51
+ description="Intent detection + domain logic + natural generation")
52
+
53
+ iface.launch()
54
 
55