Spaces:
Runtime error
Runtime error
Update app.py
Browse filesAdd support to RTL display for Arabic text
app.py
CHANGED
@@ -264,14 +264,30 @@ def main() -> None:
|
|
264 |
|
265 |
fetch_data()
|
266 |
|
267 |
-
# To avoid the orange border for the Gradio elements that are in constant loading
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
css = """
|
269 |
.generating {
|
270 |
border: none;
|
271 |
}
|
272 |
img {
|
273 |
-
|
274 |
-
|
|
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
"""
|
277 |
|
|
|
264 |
|
265 |
fetch_data()
|
266 |
|
267 |
+
# # To avoid the orange border for the Gradio elements that are in constant loading
|
268 |
+
# css = """
|
269 |
+
# .generating {
|
270 |
+
# border: none;
|
271 |
+
# }
|
272 |
+
# img {
|
273 |
+
# width: auto; /* or you can set it to a specific width like 200px */
|
274 |
+
# height: auto; /* adjust the height as needed */
|
275 |
+
# }
|
276 |
+
# """
|
277 |
+
|
278 |
+
# CSS for RTL styling and removing the orange border for constantly loading elements
|
279 |
css = """
|
280 |
.generating {
|
281 |
border: none;
|
282 |
}
|
283 |
img {
|
284 |
+
width: auto; /* or you can set it to a specific width like 200px */
|
285 |
+
height: auto; /* adjust the height as needed */
|
286 |
+
}
|
287 |
+
/* Add RTL styling for Arabic text */
|
288 |
+
.markdown, .gr-row, .gr-column {
|
289 |
+
direction: rtl;
|
290 |
+
text-align: right;
|
291 |
}
|
292 |
"""
|
293 |
|