Update app.py
Browse files
app.py
CHANGED
|
@@ -2,15 +2,14 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message,history):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
return message
|
| 6 |
|
| 7 |
print("'hello world!'")
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type="messages")
|
| 10 |
chatbot.launch()
|
| 11 |
-
|
| 12 |
-
numberval = random.randint(0,1)
|
| 13 |
-
if numberval == 0:
|
| 14 |
-
print("yes")
|
| 15 |
-
else:
|
| 16 |
-
print("no")
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def echo(message,history):
|
| 5 |
+
numberval = random.randint(0,1)
|
| 6 |
+
if numberval == 0:
|
| 7 |
+
message = "yes"
|
| 8 |
+
else:
|
| 9 |
+
message = "no"
|
| 10 |
return message
|
| 11 |
|
| 12 |
print("'hello world!'")
|
| 13 |
|
| 14 |
chatbot = gr.ChatInterface(echo, type="messages")
|
| 15 |
chatbot.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|