Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def random_message(message, history):
|
| 5 |
+
choices = ["yes", "No", "As I see it", "yes", "Outlook good", "Yes - definitely", "without a doubt", "ask again later", "cannot predict now," "my reply is no" "very doubtful," ]
|
| 6 |
+
chat_answer = random_choice(chocies)
|
| 7 |
+
return chat_answer
|
| 8 |
|
| 9 |
+
print("hello, world!")
|
| 10 |
+
chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatbot for kwk", )
|
| 11 |
|
| 12 |
chatbot.launch()
|