Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,17 +19,6 @@ def respond(message, history):
|
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
#def random_message(message, history):
|
| 25 |
-
# choices = ["Yes", "No", "Try Again Later.", "Of course!", "Bruh.", "Wow.", "I don't know...", "... You're weird", "Obviously..?", "Duh.", "Sure", "I don't think so ha."]
|
| 26 |
-
|
| 27 |
-
# randomMessage = random.choice(choices)
|
| 28 |
-
|
| 29 |
-
# return randomMessage
|
| 30 |
-
|
| 31 |
chatbot = gr.ChatInterface(respond, type = "messages", title = "Brutal 8Ball Fortune Teller for KWK", theme = gr.themes.Glass(), examples = ["How will lunch be today?", "How's the weather today?", "Is Trinity goofy?"])
|
| 32 |
|
| 33 |
chatbot.launch()
|
| 34 |
-
|
| 35 |
-
# repeats messages
|
|
|
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
chatbot = gr.ChatInterface(respond, type = "messages", title = "Brutal 8Ball Fortune Teller for KWK", theme = gr.themes.Glass(), examples = ["How will lunch be today?", "How's the weather today?", "Is Trinity goofy?"])
|
| 23 |
|
| 24 |
chatbot.launch()
|
|
|
|
|
|