Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,8 +91,6 @@ def respond(message, history, platform):
|
|
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",
|
@@ -106,13 +104,20 @@ chat_theme = gr.themes.Soft(
|
|
106 |
button_primary_background_fill_hover="*primary_400"
|
107 |
)
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
)
|
|
|
118 |
chatbot.launch()
|
|
|
91 |
)
|
92 |
return response['choices'][0]['message']['content'].strip()
|
93 |
|
|
|
|
|
94 |
chat_theme = gr.themes.Soft(
|
95 |
primary_hue="pink",
|
96 |
secondary_hue="rose",
|
|
|
104 |
button_primary_background_fill_hover="*primary_400"
|
105 |
)
|
106 |
|
107 |
+
with gr.Blocks(theme=chat_theme) as chatbot:
|
108 |
+
with gr.Row():
|
109 |
+
with gr.Column():
|
110 |
+
gr.Markdown("""# TV Bot from RecoNext""")
|
111 |
+
gr.Markdown("""### Hey! I’m your TV bot \nI help you find your next favorite TV show based on your age and taste. Just tell me what you're into!""")
|
112 |
+
with gr.Column():
|
113 |
+
gr.reconext_logo.png
|
114 |
+
with gr.Row():
|
115 |
+
gr.ChatInterface(
|
116 |
+
fn = respond,
|
117 |
+
additional_inputs = [streaming_platforms],
|
118 |
+
type="messages"
|
119 |
+
)
|
120 |
|
121 |
+
streaming_platforms = gr.CheckboxGroup(['Paramount+', 'HBO Max','Netflix', 'Prime Video', 'Hulu','Disney+'], label ='Only include from: ', info= 'Choose one or more')
|
122 |
+
|
123 |
chatbot.launch()
|