Janec09 commited on
Commit
5fd84a6
·
verified ·
1 Parent(s): abde855

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -18
app.py CHANGED
@@ -14,30 +14,32 @@ 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(theme = gr.themes.Soft(
18
- primary_hue="purple",
19
- secondary_hue="fuchsia",
20
- neutral_hue = "gray",
21
- text_size = "lg"
22
- ).set(
23
- background_fill_primary='*neutral_200',
24
- background_fill_secondary='*neutral_400',
25
- background_fill_secondary_dark='*secondary_500',
26
- border_color_accent='*secondary_400',
27
- border_color_accent_dark='*secondary_800',
28
- color_accent='*secondary_300',
29
- color_accent_soft='*secondary_500',
30
- color_accent_soft_dark='*secondary_400',
31
- button_primary_background_fill='*secondary_500',
32
- button_primary_background_fill_dark='*secondary_600'
33
- )as demo:
 
 
34
 
35
  chatbot = gr.ChatInterface(
36
  fn=magic_8_ball,
37
  title="Magic 8 Ball",
38
  description="Let's play magic 8 ball!",
39
  type="messages"
40
- ))
41
 
42
 
43
  chatbot.launch()
 
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_secondary='*neutral_400',
26
+ background_fill_secondary_dark='*secondary_500',
27
+ border_color_accent='*secondary_400',
28
+ border_color_accent_dark='*secondary_800',
29
+ color_accent='*secondary_300',
30
+ color_accent_soft='*secondary_500',
31
+ color_accent_soft_dark='*secondary_400',
32
+ button_primary_background_fill='*secondary_500',
33
+ button_primary_background_fill_dark='*secondary_600'
34
+ )
35
+ ) as chatbot: # This is the correct place for 'as demo'
36
 
37
  chatbot = gr.ChatInterface(
38
  fn=magic_8_ball,
39
  title="Magic 8 Ball",
40
  description="Let's play magic 8 ball!",
41
  type="messages"
42
+ )
43
 
44
 
45
  chatbot.launch()