Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,8 @@ def respond(message, history):
|
|
89 |
response = client.chat_completion(
|
90 |
messages, max_tokens = 700, temperature=1.3, top_p=0.6
|
91 |
)
|
|
|
|
|
92 |
chat_theme = gr.themes.Soft(
|
93 |
primary_hue="FDE9E9",
|
94 |
secondary_hue="D17E96",
|
@@ -103,7 +105,6 @@ chat_theme = gr.themes.Soft(
|
|
103 |
button_primary_background_fill="*primary_500",
|
104 |
button_primary_background_fill_hover="*primary_400"
|
105 |
)
|
106 |
-
return response['choices'][0]['message']['content'].strip()
|
107 |
chatbot = gr.ChatInterface(respond, type="messages", theme=chat_theme)
|
108 |
chatbot.launch()
|
109 |
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!")])
|
|
|
89 |
response = client.chat_completion(
|
90 |
messages, max_tokens = 700, temperature=1.3, top_p=0.6
|
91 |
)
|
92 |
+
return response['choices'][0]['message']['content'].strip()
|
93 |
+
|
94 |
chat_theme = gr.themes.Soft(
|
95 |
primary_hue="FDE9E9",
|
96 |
secondary_hue="D17E96",
|
|
|
105 |
button_primary_background_fill="*primary_500",
|
106 |
button_primary_background_fill_hover="*primary_400"
|
107 |
)
|
|
|
108 |
chatbot = gr.ChatInterface(respond, type="messages", theme=chat_theme)
|
109 |
chatbot.launch()
|
110 |
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!")])
|