Janec09 commited on
Commit
5c6d59d
·
verified ·
1 Parent(s): 2dbc7dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -14,34 +14,33 @@ chatbot = gr.ChatInterface(magic_8_ball, title = "Magic 8 Ball", description = "
14
  #defining my chatbot so users can interact and see their conversation history and send new messages!
15
 
16
 
 
17
  with gr.Blocks(
18
  theme=gr.themes.Soft(
19
  primary_hue="purple",
20
  secondary_hue="fuchsia",
21
  neutral_hue="gray",
22
  text_size="lg"
23
- .set(
24
- background_fill_primary='*neutral_200',
25
- background_fill_primary_dark='gray', # 👈 This sets the background in dark mode to gray
26
- background_fill_secondary='neutral_100',
27
- background_fill_secondary_dark='gray', # 👈 Optional: also make containers gray in dark mode
28
- border_color_accent='*secondary_400',
29
- border_color_accent_dark='*secondary_800',
30
- color_accent='*secondary_600',
31
- color_accent_soft='*secondary_200',
32
- color_accent_soft_dark='*secondary_400',
33
- button_primary_background_fill='*secondary_500',
34
- button_primary_background_fill_dark='*secondary_600'
35
- )
36
-
37
- ) as demo: # This is the correct place for 'as demo'
38
-
39
- chatbot = gr.ChatInterface(
40
  fn=magic_8_ball,
41
  title="Magic 8 Ball",
42
  description="Let's play magic 8 ball!",
43
  type="messages"
44
  )
45
 
46
-
47
  demo.launch()
 
14
  #defining my chatbot so users can interact and see their conversation history and send new messages!
15
 
16
 
17
+
18
  with gr.Blocks(
19
  theme=gr.themes.Soft(
20
  primary_hue="purple",
21
  secondary_hue="fuchsia",
22
  neutral_hue="gray",
23
  text_size="lg"
24
+ ).set(
25
+ background_fill_primary='*neutral_200',
26
+ background_fill_primary_dark='gray',
27
+ background_fill_secondary='neutral_100',
28
+ background_fill_secondary_dark='gray',
29
+ border_color_accent='*secondary_400',
30
+ border_color_accent_dark='*secondary_800',
31
+ color_accent='*secondary_600',
32
+ color_accent_soft='*secondary_200',
33
+ color_accent_soft_dark='*secondary_400',
34
+ button_primary_background_fill='*secondary_500',
35
+ button_primary_background_fill_dark='*secondary_600'
36
+ )
37
+ ) as demo:
38
+
39
+ gr.ChatInterface(
 
40
  fn=magic_8_ball,
41
  title="Magic 8 Ball",
42
  description="Let's play magic 8 ball!",
43
  type="messages"
44
  )
45
 
 
46
  demo.launch()