Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8651533
1
Parent(s):
1c78319
Fix app launch theme error and upgrade gradio
Browse files- README.md +1 -1
- app.py +12 -12
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🧠
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-4.0
|
|
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-4.0
|
app.py
CHANGED
|
@@ -419,7 +419,17 @@ footer { display: none !important; }
|
|
| 419 |
"""
|
| 420 |
|
| 421 |
# Create interface
|
| 422 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
|
| 424 |
# Header
|
| 425 |
gr.HTML("""
|
|
@@ -607,14 +617,4 @@ with gr.Blocks(title="Cognitive Proxy") as demo:
|
|
| 607 |
</div>
|
| 608 |
""")
|
| 609 |
|
| 610 |
-
demo.launch(
|
| 611 |
-
theme=gr.themes.Base(
|
| 612 |
-
primary_hue="gray",
|
| 613 |
-
neutral_hue="gray",
|
| 614 |
-
text_size="md",
|
| 615 |
-
spacing_size="lg",
|
| 616 |
-
radius_size="none",
|
| 617 |
-
),
|
| 618 |
-
css=custom_css,
|
| 619 |
-
ssr_mode=False
|
| 620 |
-
)
|
|
|
|
| 419 |
"""
|
| 420 |
|
| 421 |
# Create interface
|
| 422 |
+
with gr.Blocks(
|
| 423 |
+
title="Cognitive Proxy",
|
| 424 |
+
theme=gr.themes.Base(
|
| 425 |
+
primary_hue="gray",
|
| 426 |
+
neutral_hue="gray",
|
| 427 |
+
text_size="md",
|
| 428 |
+
spacing_size="lg",
|
| 429 |
+
radius_size="none",
|
| 430 |
+
),
|
| 431 |
+
css=custom_css
|
| 432 |
+
) as demo:
|
| 433 |
|
| 434 |
# Header
|
| 435 |
gr.HTML("""
|
|
|
|
| 617 |
</div>
|
| 618 |
""")
|
| 619 |
|
| 620 |
+
demo.launch(ssr_mode=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio>=4.
|
| 2 |
torch>=2.1.0
|
| 3 |
transformers>=4.36.0
|
| 4 |
numpy<2.0.0
|
|
|
|
| 1 |
+
gradio>=4.44.1
|
| 2 |
torch>=2.1.0
|
| 3 |
transformers>=4.36.0
|
| 4 |
numpy<2.0.0
|