Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,37 +72,22 @@ example_questions = [
|
|
72 |
LOGO_PATH = "image.png"
|
73 |
|
74 |
with gr.Blocks(title="مساعد قاعدة بيانات الحديث الشريف") as demo:
|
75 |
-
with gr.Row():
|
76 |
-
gr.
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
border-radius:10px;
|
83 |
-
text-align:center;
|
84 |
-
font-size:22px;
|
85 |
-
font-weight:bold;
|
86 |
-
display: flex;
|
87 |
-
align-items: center;
|
88 |
-
justify-content: center;
|
89 |
-
gap: 15px;
|
90 |
-
'>
|
91 |
-
<img src='{LOGO_PATH}' alt='Logo' style='
|
92 |
-
height:70px;
|
93 |
-
width:auto;
|
94 |
-
margin: 0;
|
95 |
-
display: inline-block;
|
96 |
-
'>
|
97 |
-
<div>
|
98 |
مساعد قاعدة بيانات الحديث الشريف
|
99 |
<div style='font-size:16px; font-weight:normal; margin-top:5px;'>
|
100 |
استكشف الأحاديث النبوية وعلومها بسهولة
|
101 |
</div>
|
102 |
</div>
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
106 |
with gr.Row():
|
107 |
with gr.Column(scale=3):
|
108 |
gr.Markdown("""
|
|
|
72 |
LOGO_PATH = "image.png"
|
73 |
|
74 |
with gr.Blocks(title="مساعد قاعدة بيانات الحديث الشريف") as demo:
|
75 |
+
with gr.Row(elem_id="custom-header"):
|
76 |
+
with gr.Column(scale=1, min_width=100):
|
77 |
+
gr.Image(value=LOGO_PATH, show_label=False, interactive=False, height=70, width=70)
|
78 |
+
with gr.Column(scale=8):
|
79 |
+
gr.Markdown(
|
80 |
+
"""
|
81 |
+
<div style='color:white; font-size:22px; font-weight:bold; text-align:center;'>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
مساعد قاعدة بيانات الحديث الشريف
|
83 |
<div style='font-size:16px; font-weight:normal; margin-top:5px;'>
|
84 |
استكشف الأحاديث النبوية وعلومها بسهولة
|
85 |
</div>
|
86 |
</div>
|
87 |
+
""",
|
88 |
+
elem_id="header-title"
|
89 |
+
)
|
90 |
+
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=3):
|
93 |
gr.Markdown("""
|