Revert gradio to 4.44.1 for spaces
Browse filesStyle main content differently since gradio api for Markdown is
different
- app.py +2 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -134,11 +134,10 @@ with gr.Blocks(
|
|
134 |
Stay updated with the latest AI and ML news, summarized by AI! β¨
|
135 |
""")
|
136 |
|
137 |
-
|
|
|
138 |
label="π Content",
|
139 |
value="Loading news data... π",
|
140 |
-
container=True,
|
141 |
-
padding=20
|
142 |
)
|
143 |
|
144 |
# Metadata section (collapsible, collapsed by default)
|
|
|
134 |
Stay updated with the latest AI and ML news, summarized by AI! β¨
|
135 |
""")
|
136 |
|
137 |
+
with gr.Row(variant="panel", elem_classes="content-shadow"):
|
138 |
+
content_display = gr.Markdown(
|
139 |
label="π Content",
|
140 |
value="Loading news data... π",
|
|
|
|
|
141 |
)
|
142 |
|
143 |
# Metadata section (collapsible, collapsed by default)
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio>=5.
|
2 |
pandas>=2.3.1
|
3 |
huggingface_hub>=0.33.5
|
4 |
pyarrow>=21.0.0
|
|
|
1 |
+
gradio>=4.44.1,<5.0.0
|
2 |
pandas>=2.3.1
|
3 |
huggingface_hub>=0.33.5
|
4 |
pyarrow>=21.0.0
|