Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,11 +91,28 @@ def respond(message, history, platform):
|
|
| 91 |
)
|
| 92 |
return response['choices'][0]['message']['content'].strip()
|
| 93 |
|
| 94 |
-
chatbot = gr.ChatInterface(respond, type="messages")
|
| 95 |
streaming_platforms = gr.CheckboxGroup(['Paramount+', 'HBO Max','Netflix', 'Prime Video', 'Hulu','Disney+'], label ='Only include from: ', info= 'Choose one or more')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
chatbot = gr.ChatInterface(
|
| 97 |
fn = respond,
|
| 98 |
-
additional_inputs = [streaming_platforms]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
)
|
| 100 |
-
chatbot.launch()
|
| 101 |
-
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!")])
|
|
|
|
| 91 |
)
|
| 92 |
return response['choices'][0]['message']['content'].strip()
|
| 93 |
|
|
|
|
| 94 |
streaming_platforms = gr.CheckboxGroup(['Paramount+', 'HBO Max','Netflix', 'Prime Video', 'Hulu','Disney+'], label ='Only include from: ', info= 'Choose one or more')
|
| 95 |
+
|
| 96 |
+
chat_theme = gr.themes.Soft(
|
| 97 |
+
primary_hue="pink",
|
| 98 |
+
secondary_hue="rose",
|
| 99 |
+
neutral_hue="indigo",
|
| 100 |
+
spacing_size="lg",
|
| 101 |
+
radius_size="lg"
|
| 102 |
+
).set(
|
| 103 |
+
input_background_fill="*neutral_50",
|
| 104 |
+
input_border_color_focus="*primary_300",
|
| 105 |
+
button_primary_background_fill="*primary_500",
|
| 106 |
+
button_primary_background_fill_hover="*primary_400"
|
| 107 |
+
)
|
| 108 |
+
|
| 109 |
chatbot = gr.ChatInterface(
|
| 110 |
fn = respond,
|
| 111 |
+
additional_inputs = [streaming_platforms],
|
| 112 |
+
type="messages",
|
| 113 |
+
theme=chat_theme,
|
| 114 |
+
title="Movie Bot from RecoNext",
|
| 115 |
+
description="Hey! I’m your movie bot \nI help you find your next favorite TV show based on your age and taste. Just tell me what you're into!"
|
| 116 |
+
|
| 117 |
)
|
| 118 |
+
chatbot.launch()
|
|
|