Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def chatbot(message):
|
| 4 |
if "services" in message.lower():
|
| 5 |
return "We offer managed IT, cybersecurity, and backup solutions. Want to schedule a consultation?"
|
| 6 |
elif "hello" in message.lower():
|
|
@@ -12,3 +12,4 @@ def chatbot(message):
|
|
| 12 |
|
| 13 |
iface = gr.ChatInterface(chatbot, type="messages")
|
| 14 |
iface.launch(share=True)
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def chatbot(message, history):
|
| 4 |
if "services" in message.lower():
|
| 5 |
return "We offer managed IT, cybersecurity, and backup solutions. Want to schedule a consultation?"
|
| 6 |
elif "hello" in message.lower():
|
|
|
|
| 12 |
|
| 13 |
iface = gr.ChatInterface(chatbot, type="messages")
|
| 14 |
iface.launch(share=True)
|
| 15 |
+
|