anaspro
commited on
Commit
·
510e121
1
Parent(s):
4377c21
Fix RTL support for Arabic interface
Browse files- Remove unsupported 'rtl' parameter from ChatInterface
- Add CSS-based RTL support using custom CSS
- Fix application startup error
- Maintain Arabic language support with right-to-left text direction
app.py
CHANGED
|
@@ -157,12 +157,12 @@ demo = gr.ChatInterface(
|
|
| 157 |
),
|
| 158 |
stop_btn="Stop Generation",
|
| 159 |
multimodal=False,
|
| 160 |
-
theme=gr.themes.Soft()
|
| 161 |
-
rtl=True
|
| 162 |
)
|
| 163 |
|
| 164 |
if __name__ == "__main__":
|
| 165 |
demo.launch(
|
| 166 |
title="مساعد NB TEL للدعم الفني - Lahja-iraqi-4B",
|
| 167 |
-
favicon="https://img.icons8.com/color/96/technical-support.png"
|
|
|
|
| 168 |
)
|
|
|
|
| 157 |
),
|
| 158 |
stop_btn="Stop Generation",
|
| 159 |
multimodal=False,
|
| 160 |
+
theme=gr.themes.Soft()
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
if __name__ == "__main__":
|
| 164 |
demo.launch(
|
| 165 |
title="مساعد NB TEL للدعم الفني - Lahja-iraqi-4B",
|
| 166 |
+
favicon="https://img.icons8.com/color/96/technical-support.png",
|
| 167 |
+
css=".gradio-container {direction: rtl;}"
|
| 168 |
)
|