Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,6 @@ app_theme_outer = gr.themes.Base(
|
|
| 149 |
body_background_fill=FLY_LIGHT_BACKGROUND_HEX,
|
| 150 |
)
|
| 151 |
|
| 152 |
-
# CSS با حذف کامل کامنت های /* ... */
|
| 153 |
custom_css = f"""
|
| 154 |
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
|
| 155 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
|
|
@@ -379,8 +378,8 @@ with gr.Blocks(theme=app_theme_outer, css=custom_css, title="آموزش زبان
|
|
| 379 |
input_text_persian = gr.Textbox(
|
| 380 |
lines=4,
|
| 381 |
label="📝 متن فارسی برای ترجمه",
|
| 382 |
-
placeholder="مثال: سلام، فردا هوا چطور است؟"
|
| 383 |
-
value="سلام، امروز میخواهیم در مورد رنگها صحبت کنیم."
|
| 384 |
)
|
| 385 |
|
| 386 |
dropdown_label = "🗣️ انتخاب گوینده و لهجه انگلیسی"
|
|
@@ -436,7 +435,7 @@ with gr.Blocks(theme=app_theme_outer, css=custom_css, title="آموزش زبان
|
|
| 436 |
else:
|
| 437 |
gr.Markdown("<p style='text-align:center; color:var(--fly-text-secondary); margin-top:1rem;'>نمونهای برای نمایش موجود نیست (لیست صداها خالی است یا صدای پیشفرض معتبر نیست).</p>")
|
| 438 |
|
| 439 |
-
gr.Markdown("<p class='app-footer-fly'>Fly Language Learning ©
|
| 440 |
|
| 441 |
if 'submit_button' in locals() and submit_button is not None:
|
| 442 |
submit_button.click(
|
|
|
|
| 149 |
body_background_fill=FLY_LIGHT_BACKGROUND_HEX,
|
| 150 |
)
|
| 151 |
|
|
|
|
| 152 |
custom_css = f"""
|
| 153 |
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
|
| 154 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
|
|
|
|
| 378 |
input_text_persian = gr.Textbox(
|
| 379 |
lines=4,
|
| 380 |
label="📝 متن فارسی برای ترجمه",
|
| 381 |
+
placeholder="مثال: سلام، فردا هوا چطور است؟"
|
| 382 |
+
# value="سلام، امروز میخواهیم در مورد رنگها صحبت کنیم." # <--- متن پیشفرض حذف شد
|
| 383 |
)
|
| 384 |
|
| 385 |
dropdown_label = "🗣️ انتخاب گوینده و لهجه انگلیسی"
|
|
|
|
| 435 |
else:
|
| 436 |
gr.Markdown("<p style='text-align:center; color:var(--fly-text-secondary); margin-top:1rem;'>نمونهای برای نمایش موجود نیست (لیست صداها خالی است یا صدای پیشفرض معتبر نیست).</p>")
|
| 437 |
|
| 438 |
+
gr.Markdown("<p class='app-footer-fly'>Fly Language Learning © 2025</p>") # <--- سال به ۲۰۲۵ تغییر کرد
|
| 439 |
|
| 440 |
if 'submit_button' in locals() and submit_button is not None:
|
| 441 |
submit_button.click(
|