Update app.py
Browse files
app.py
CHANGED
|
@@ -35,14 +35,13 @@ def create_inspiring_line(future, value, skill):
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"⚠️ حدث خطأ أثناء التوليد: {e}"
|
| 37 |
|
| 38 |
-
# واجهة
|
| 39 |
-
with gr.Blocks(theme=gr.themes.Soft(primary_hue="
|
| 40 |
-
|
| 41 |
gr.HTML("""
|
| 42 |
-
<div style="text-align:center;">
|
| 43 |
<img src="https://i.imgur.com/n7yR2tE.png" alt="شعار Eng.Reem" width="120" style="border-radius:50%; margin-bottom:15px;">
|
| 44 |
-
<h1 style="color:#
|
| 45 |
-
<p style="color:#
|
| 46 |
</div>
|
| 47 |
""")
|
| 48 |
|
|
@@ -59,10 +58,10 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="green", secondary_hue="teal"))
|
|
| 59 |
submit.click(fn=create_inspiring_line, inputs=[future, value, skill], outputs=output)
|
| 60 |
|
| 61 |
gr.HTML("""
|
| 62 |
-
<div style="text-align:center; margin-top:
|
| 63 |
-
<p>© 2025 Eng. Reem Algethami | AI & Creativity
|
| 64 |
</div>
|
| 65 |
""")
|
| 66 |
|
| 67 |
if __name__ == "__main__":
|
| 68 |
-
demo.launch()
|
|
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"⚠️ حدث خطأ أثناء التوليد: {e}"
|
| 37 |
|
| 38 |
+
# 🎨 تصميم الواجهة
|
| 39 |
+
with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink", secondary_hue="violet")) as demo:
|
|
|
|
| 40 |
gr.HTML("""
|
| 41 |
+
<div style="text-align:center; margin-top:10px;">
|
| 42 |
<img src="https://i.imgur.com/n7yR2tE.png" alt="شعار Eng.Reem" width="120" style="border-radius:50%; margin-bottom:15px;">
|
| 43 |
+
<h1 style="color:#C85A8E; font-family:'Tajawal', sans-serif;">💫 صانعة الأثر</h1>
|
| 44 |
+
<p style="color:#6E4E57; font-size:18px;">حيث تتحول الأحلام إلى ومضاتٍ من الإلهام والإبداع ✨</p>
|
| 45 |
</div>
|
| 46 |
""")
|
| 47 |
|
|
|
|
| 58 |
submit.click(fn=create_inspiring_line, inputs=[future, value, skill], outputs=output)
|
| 59 |
|
| 60 |
gr.HTML("""
|
| 61 |
+
<div style="text-align:center; margin-top:30px; color:#a77b8d;">
|
| 62 |
+
<p>© 2025 Eng. Reem Algethami | AI & Creativity 🌷</p>
|
| 63 |
</div>
|
| 64 |
""")
|
| 65 |
|
| 66 |
if __name__ == "__main__":
|
| 67 |
+
demo.launch()
|