Spaces:
Build error
Build error
set initial contents for debugging purposes
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
|
6 |
def chat(message, history):
|
7 |
-
history = history or []
|
8 |
if message.startswith("How many"):
|
9 |
response = random.randint(1, 10)
|
10 |
elif message.startswith("How"):
|
@@ -14,7 +14,7 @@ def chat(message, history):
|
|
14 |
else:
|
15 |
response = "I don't know"
|
16 |
history.append((message, response))
|
17 |
-
return history
|
18 |
|
19 |
chatbot = gr.Chatbot(color_map=("green", "gray"))
|
20 |
demo = gr.Interface(
|
|
|
4 |
|
5 |
|
6 |
def chat(message, history):
|
7 |
+
history = history or [('hi', 'hello'), ('what ya doing', 'nothing')]
|
8 |
if message.startswith("How many"):
|
9 |
response = random.randint(1, 10)
|
10 |
elif message.startswith("How"):
|
|
|
14 |
else:
|
15 |
response = "I don't know"
|
16 |
history.append((message, response))
|
17 |
+
return history, history
|
18 |
|
19 |
chatbot = gr.Chatbot(color_map=("green", "gray"))
|
20 |
demo = gr.Interface(
|