shivi commited on
Commit
07fceec
·
1 Parent(s): 196b397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -32,7 +32,7 @@ class CustomTheme(Base):
32
  radius_size=radius_size,
33
  text_size=text_size,
34
  )
35
- self.name = "soft"
36
  super().set(
37
  # Colors
38
  background_fill_primary="*neutral_50",
@@ -102,7 +102,7 @@ class CustomTheme(Base):
102
  )
103
 
104
 
105
- custom_soft_theme = CustomTheme()
106
 
107
 
108
  max_search_results = 3
@@ -148,7 +148,7 @@ with gr.Blocks(theme=custom_theme) as demo:
148
  clear = gr.Button("Clear", variant="primary")
149
 
150
  with gr.Row():
151
- with gr.Accordion("Show example inputs I can load:", open=True):
152
  example_1 = gr.Button(
153
  "Load GPL License Document", variant="primary"
154
  )
@@ -171,7 +171,7 @@ with gr.Blocks(theme=custom_theme) as demo:
171
  invisible_comp = gr.Text(label="Dummy Component", visible=False)
172
 
173
  with gr.Row():
174
- with gr.Accordion("Advanced Settings:", open=True):
175
  summary_length = gr.Radio(
176
  ["short", "medium", "long"],
177
  label="Summary Length",
@@ -201,7 +201,7 @@ with gr.Blocks(theme=custom_theme) as demo:
201
  )
202
 
203
  with gr.Row():
204
- with gr.Accordion("Show example inputs I can load:", open=True):
205
  example_3 = gr.Button(
206
  "Load GPL License Document", variant="primary"
207
  )
 
32
  radius_size=radius_size,
33
  text_size=text_size,
34
  )
35
+ self.name = "custom_theme"
36
  super().set(
37
  # Colors
38
  background_fill_primary="*neutral_50",
 
102
  )
103
 
104
 
105
+ custom_theme = CustomTheme()
106
 
107
 
108
  max_search_results = 3
 
148
  clear = gr.Button("Clear", variant="primary")
149
 
150
  with gr.Row():
151
+ with gr.Accordion("Show example inputs I can load:", open=False):
152
  example_1 = gr.Button(
153
  "Load GPL License Document", variant="primary"
154
  )
 
171
  invisible_comp = gr.Text(label="Dummy Component", visible=False)
172
 
173
  with gr.Row():
174
+ with gr.Accordion("Advanced Settings:", open=False):
175
  summary_length = gr.Radio(
176
  ["short", "medium", "long"],
177
  label="Summary Length",
 
201
  )
202
 
203
  with gr.Row():
204
+ with gr.Accordion("Show example inputs I can load:", open=False):
205
  example_3 = gr.Button(
206
  "Load GPL License Document", variant="primary"
207
  )