Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -248,15 +248,28 @@ if __name__ == "__main__":
|
|
248 |
logger.info("Starting Moroccan Darija LLM application")
|
249 |
|
250 |
# Create the Gradio interface
|
251 |
-
with gr.Blocks(css="
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
""
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
with gr.Row():
|
261 |
with gr.Column(scale=6):
|
262 |
prompt_input = gr.Textbox(
|
|
|
248 |
logger.info("Starting Moroccan Darija LLM application")
|
249 |
|
250 |
# Create the Gradio interface
|
251 |
+
with gr.Blocks(css="""
|
252 |
+
footer {visibility: hidden}
|
253 |
+
.center-text {text-align: center; margin: 0 auto; max-width: 900px;}
|
254 |
+
.header-text {font-size: 2.5rem; font-weight: bold; margin-bottom: 0.5rem;}
|
255 |
+
.subheader-text {font-size: 1.2rem; margin-bottom: 2rem;}
|
256 |
+
.flag-emoji {font-size: 3rem;}
|
257 |
+
""") as app:
|
258 |
+
with gr.Row(elem_classes=["center-text"]):
|
259 |
+
gr.Markdown("""
|
260 |
+
<div class="center-text">
|
261 |
+
<div class="flag-emoji">🇲🇦</div>
|
262 |
+
<div class="header-text">نموذج اللغة المغربية الدارجة</div>
|
263 |
+
<div class="header-text">Moroccan Darija LLM</div>
|
264 |
+
<div class="subheader-text">
|
265 |
+
أدخل نصًا بالدارجة المغربية واحصل على نص تم إنشاؤه بواسطة نموذج اللغة الخاص بنا المدرب على الدارجة المغربية.
|
266 |
+
</div>
|
267 |
+
<div class="subheader-text">
|
268 |
+
Enter a prompt and get AI-generated text using our pretrained LLM on Moroccan Darija.
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
""")
|
272 |
+
|
273 |
with gr.Row():
|
274 |
with gr.Column(scale=6):
|
275 |
prompt_input = gr.Textbox(
|