Yuvalamitay commited on
Commit
2cbfd6a
·
verified ·
1 Parent(s): c0a75f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -90,5 +90,25 @@ def respond(message, history):
90
  messages, max_tokens = 700, temperature=1.3, top_p=0.6
91
  )
92
  return response['choices'][0]['message']['content'].strip()
93
- chatbot = gr.ChatInterface(respond, type="messages")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  chatbot.launch()
 
90
  messages, max_tokens = 700, temperature=1.3, top_p=0.6
91
  )
92
  return response['choices'][0]['message']['content'].strip()
93
+ chat_theme = gr.themes.Soft(
94
+ primary_hue="pink",
95
+ secondary_hue="rose",
96
+ neutral_hue="indigo",
97
+ spacing_size="lg",
98
+ radius_size="lg"
99
+ ).set(
100
+ input_background_fill="*neutral_50",
101
+ input_border_color_focus="*primary_300",
102
+ button_primary_background_fill="*primary_500",
103
+ button_primary_background_fill_hover="*primary_400"
104
+ )
105
+
106
+ chatbot = gr.ChatInterface(
107
+ respond,
108
+ type="messages",
109
+ theme=chat_theme,
110
+ title="🎬 Gen-Z Watch Buddy",
111
+ description="Hey! I’m your book bot \nI help you find your next favorite TV show based on your age and taste. Just tell me what you're into!"
112
+ )
113
+
114
  chatbot.launch()