Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ class CustomTheme(Base):
|
|
32 |
radius_size=radius_size,
|
33 |
text_size=text_size,
|
34 |
)
|
35 |
-
self.name = "
|
36 |
super().set(
|
37 |
# Colors
|
38 |
background_fill_primary="*neutral_50",
|
@@ -102,7 +102,7 @@ class CustomTheme(Base):
|
|
102 |
)
|
103 |
|
104 |
|
105 |
-
|
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=
|
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=
|
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=
|
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 |
)
|