Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,13 +92,6 @@ def respond(message, history):
|
|
92 |
messages, max_tokens = 700, temperature=1.3, top_p=0.6
|
93 |
)
|
94 |
return response['choices'][0]['message']['content'].strip()
|
95 |
-
|
96 |
-
|
97 |
-
gr.Image(
|
98 |
-
value="logo.png",
|
99 |
-
show_label=False,
|
100 |
-
show_share_button = False,
|
101 |
-
show_download_button = False)
|
102 |
-
gr.ChatInterface(respond, type="messages")
|
103 |
chatbot.launch()
|
104 |
-
chatbot.chatbot.update([(None, "Hey! I’m your Gen-Z watch buddy \nI help you find your next favorite TV show based on what you have liked before, your age, and your favorite genre. Just say what you're into!")])
|
|
|
92 |
messages, max_tokens = 700, temperature=1.3, top_p=0.6
|
93 |
)
|
94 |
return response['choices'][0]['message']['content'].strip()
|
95 |
+
initial_message = [("🤖", "Hey! I’m your Gen-Z watch buddy.\nI help you find your next favorite TV show based on what you like, your age, or favorite genre. Just tell me what you're into!")]
|
96 |
+
chatbot = gr.ChatInterface(respond, type="messages", chatbot=initial_message)
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
chatbot.launch()
|
|