abdulbasirakbar123 commited on
Commit
f99c86e
·
verified ·
1 Parent(s): 2b88708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +70 -139
app.py CHANGED
@@ -35,14 +35,11 @@ T = {
35
  | **Specification** | **Detail** |
36
  |---|---|
37
  | AI Model | CNN Deep Learning |
38
- | Architecture | 4-Layer Convolutional |
39
  | Training Data | 2,870 Real Brain MRI Scans |
40
- | Input Size | 128 × 128 Pixels |
41
  | Validation Accuracy | 98.3% |
42
  | Test Accuracy | 90% |
43
  | Processing Time | < 3 Seconds |
44
  | Data Privacy | No Image Storage |
45
- | Platform | TensorFlow + Gradio |
46
  """,
47
  "about_text": """
48
  ### 👨‍💻 Developer
@@ -54,17 +51,14 @@ Kabul, Afghanistan
54
 
55
  📅 **Project Year:** 2025
56
  📌 **Version:** 2.0
57
- 🏛️ **Institution:** GIHS
58
  """,
59
  "contact_text": """
60
  ### 📞 Get In Touch
61
 
62
- | Platform | Contact |
63
- |---|---|
64
- | 📧 **Email** | abdulbasir.akbar123@gmail.com |
65
- | 📱 **WhatsApp** | +93770068586 |
66
- | 🔗 **LinkedIn** | [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381) |
67
- | 📘 **Facebook** | [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/) |
68
  """,
69
  "legal_text": """
70
  ### © 2025 Abdul Basir Akbar. ALL RIGHTS RESERVED.
@@ -72,21 +66,9 @@ Kabul, Afghanistan
72
  **Institution:** Department of Biomedical Engineering
73
  Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
74
 
75
- ---
76
- ### 🚫 STRICTLY PROHIBITED
77
- - Unauthorized reproduction or distribution
78
- - Commercial use without written permission
79
- - Reverse engineering of the AI model
80
- - Modification without authorization
81
-
82
- ---
83
- ### ✅ PERMITTED USES
84
- - Academic research with proper citation
85
- - Non-commercial medical screening
86
- - Educational demonstrations
87
 
88
- ---
89
- *Protected under International Copyright Laws*
90
  """
91
  },
92
  "ps": {
@@ -113,14 +95,11 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
113
  | **مشخصات** | **جزئیات** |
114
  |---|---|
115
  | AI ماډل | CNN ژورې زده کړې |
116
- | جوړښت | ۴-لایه کانولوشنل |
117
  | روزنیز معلومات | ۲,۸۷۰ ریښتیني MRI سکینونه |
118
- | انځور اندازه | ۱۲۸ × ۱۲۸ پکسلز |
119
  | تایید دقت | ۹۸.۳٪ |
120
  | ازموینې دقت | ۹۰٪ |
121
  | پروسس وخت | < ۳ ثانیې |
122
  | معلوماتو محرمیت | هیڅ انځور نه ساتل کېږي |
123
- | پلیټ فارم | TensorFlow + Gradio |
124
  """,
125
  "about_text": """
126
  ### 👨‍💻 جوړونکی
@@ -132,17 +111,14 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
132
 
133
  📅 **پروژه کال:** ۲۰۲۵
134
  📌 **نسخه:** ۲.۰
135
- 🏛️ **انسټیټیوټ:** GIHS
136
  """,
137
  "contact_text": """
138
  ### 📞 اړیکه ونیسئ
139
 
140
- | پلیټ فارم | اړیکه |
141
- |---|---|
142
- | 📧 **ایمیل** | abdulbasir.akbar123@gmail.com |
143
- | 📱 **واټساپ** | +93770068586 |
144
- | 🔗 **لینکډاین** | [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381) |
145
- | 📘 **فیسبوک** | [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/) |
146
  """,
147
  "legal_text": """
148
  ### © ۲۰۲۵ عبدالبصیر اکبر. ټول حقوق خوندي دي.
@@ -150,21 +126,9 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
150
  **انسټیټیوټ:** د بایومیډیکل انجینرۍ څانګه
151
  د غضنفر روغتیا علومو انسټیټیوټ، کابل، افغانستان
152
 
153
- ---
154
- ### 🚫 په کلکه منع شوي
155
- - غیر مجاز تکثیر یا ویش
156
- - له اجازې پرته سوداګریز استعمال
157
- - د AI ماډل ریورس انجینرۍ
158
- - له اجازې پرته بدلون
159
 
160
- ---
161
- ### ✅ اجازه شوي استعمالونه
162
- - د مناسبې حوالې سره اکاډمیک څیړنه
163
- - غیر تجارتي طبي معاینه
164
- - تعلیمي نندارې
165
-
166
- ---
167
- *د نړیوالو کاپي رایټ قوانینو لاندې خوندي*
168
  """
169
  },
170
  "fa": {
@@ -191,14 +155,11 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
191
  | **مشخصات** | **جزئیات** |
192
  |---|---|
193
  | مدل هوش مصنوعی | CNN یادگیری عمیق |
194
- | معماری | ۴-لایه کانولوشنال |
195
  | داده‌های آموزشی | ۲,۸۷۰ اسکن واقعی MRI |
196
- | اندازه تصویر | ۱۲۸ × ۱۲۸ پیکسل |
197
  | دقت اعت��ارسنجی | ۹۸.۳٪ |
198
  | دقت آزمایش | ۹۰٪ |
199
  | زمان پردازش | کمتر از ۳ ثانیه |
200
  | حریم خصوصی | عدم ذخیره تصاویر |
201
- | پلتفرم | TensorFlow + Gradio |
202
  """,
203
  "about_text": """
204
  ### 👨‍💻 توسعه‌دهنده
@@ -210,17 +171,14 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
210
 
211
  📅 **سال پروژه:** ۲۰۲۵
212
  📌 **نسخه:** ۲.۰
213
- 🏛️ **انستیتیوت:** GIHS
214
  """,
215
  "contact_text": """
216
  ### 📞 تماس بگیرید
217
 
218
- | پلتفرم | تماس |
219
- |---|---|
220
- | 📧 **ایمیل** | abdulbasir.akbar123@gmail.com |
221
- | 📱 **واتساپ** | +93770068586 |
222
- | 🔗 **لینکداین** | [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381) |
223
- | 📘 **فیسبوک** | [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/) |
224
  """,
225
  "legal_text": """
226
  ### © ۲۰۲۵ عبدالبصیر اکبر. تمام حقوق محفوظ است.
@@ -228,21 +186,9 @@ Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
228
  **انستیتیوت:** بخش مهندسی پزشکی
229
  انستیتیوت علوم صحی غضنفر، کابل، افغانستان
230
 
231
- ---
232
- ### 🚫 اکیداً ممنوع
233
- - تکثیر یا توزیع غیرمجاز
234
- - استفاده تجاری بدون اجازه کتبی
235
- - مهندسی معکوس مدل هوش مصنوعی
236
- - تغییر بدون مجوز
237
-
238
- ---
239
- ### ✅ استفاده‌های مجاز
240
- - تحقیقات دانشگاهی با ذکر منبع
241
- - غربالگری پزشکی غیرتجاری
242
- - نمایش‌های آموزشی
243
 
244
- ---
245
- *محافظت شده تحت قوانین بین‌المللی کپی رایت*
246
  """
247
  }
248
  }
@@ -269,20 +215,20 @@ def predict_tumor(image, lang):
269
  if prediction > 0.5:
270
  return (
271
  f"{tx['tumor']}\n"
272
- f"━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
273
  f"{tx['confidence']}: {prediction*100:.1f}%\n"
274
  f"{tx['time']}: {now}\n"
275
- f"━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
276
  f"{tx['recommend']}\n\n"
277
  f"_{tx['disclaimer']}_"
278
  )
279
  else:
280
  return (
281
  f"{tx['no_tumor']}\n"
282
- f"━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
283
  f"{tx['confidence']}: {(1-prediction)*100:.1f}%\n"
284
  f"{tx['time']}: {now}\n"
285
- f"━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
286
  f"{tx['normal']}\n\n"
287
  f"_{tx['disclaimer']}_"
288
  )
@@ -293,38 +239,27 @@ def predict_tumor(image, lang):
293
  # BUILD MODERN TRI-LINGUAL INTERFACE
294
  # ============================================================
295
  with gr.Blocks(
296
- theme=gr.themes.Soft(primary_hue="blue", secondary_hue="slate"),
297
- title="NeuroScan AI | د مغز تومور تشخیص | تشخیص تومور مغزی",
298
  css="""
299
  footer { visibility: hidden; }
300
- .lang-btn {
301
- padding: 8px 16px !important;
302
- border-radius: 20px !important;
303
- font-weight: 700 !important;
304
- font-size: 13px !important;
305
- transition: all 0.3s !important;
306
- }
307
  .dev-badge {
308
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
309
  color: white; padding: 10px 20px; border-radius: 25px;
310
  text-align: center; margin: 15px 0; font-size: 14px;
311
- box-shadow: 0 4px 15px rgba(26,115,232,0.3);
312
  }
313
  """
314
  ) as app:
315
 
316
- # Language state
317
  current_lang = gr.State("en")
318
 
319
  # Header
320
  gr.Markdown("""
321
  <div style="text-align:center; padding:20px;">
322
- <h1 style="font-size:32px; margin:0; background:linear-gradient(135deg,#1a73e8,#0d47a1); -webkit-background-clip:text; -webkit-text-fill-color:transparent;">
323
- 🧠 NeuroScan AI
324
- </h1>
325
- <p style="font-size:16px; color:#666; margin:5px 0;">AI-Powered Brain Tumor Detection</p>
326
- <p style="font-size:16px; color:#666; margin:5px 0;">د مغز تومور تشخیص د AI په مرسته</p>
327
- <p style="font-size:16px; color:#666; margin:5px 0;">تشخیص تومور مغزی با هوش مصنوعی</p>
328
  <span style="background:#1a73e8; color:white; padding:5px 16px; border-radius:20px; font-size:12px; font-weight:700;">
329
  🏥 REAL AI MODEL | 90% ACCURACY
330
  </span>
@@ -332,65 +267,58 @@ with gr.Blocks(
332
  """)
333
 
334
  # Language selector
335
- gr.Markdown("### 🌐 Select Language | ژبه وټاکئ | زبان را انتخاب کنید")
336
  with gr.Row():
337
- btn_en = gr.Button("🇬🇧 English", variant="primary", elem_classes="lang-btn")
338
- btn_ps = gr.Button("🇦🇫 پښتو", elem_classes="lang-btn")
339
- btn_fa = gr.Button("🇮🇷 فارسی", elem_classes="lang-btn")
340
 
341
- # Dynamic content area
342
- with gr.Column() as content:
343
- tx = T["en"]
344
-
345
- gr.Markdown(f"""
346
- <div style="background:#fff3cd; padding:12px; border-radius:10px; border-left:4px solid #ffc107; margin:10px 0; font-size:12px;">
347
- {tx['disclaimer']}
348
- </div>
349
- """)
350
-
351
- input_image = gr.Image(type="pil", label=tx['upload'], height=300)
352
- analyze_btn = gr.Button(tx['analyze'], variant="primary", size="lg")
353
- result_display = gr.Textbox(label="📊 Analysis Report", lines=10)
354
-
355
- # Developer badge
356
- gr.Markdown("""
357
- <div class="dev-badge">
358
- 👨‍💻 Developed by <strong>Abdul Basir Akbar</strong> | GIHS | Kabul, Afghanistan | © 2025
359
- </div>
360
- """)
361
-
362
- # Info accordions
363
- with gr.Accordion(tx['specs'], open=False):
364
- gr.Markdown(tx['specs_text'])
365
- with gr.Accordion(tx['about'], open=False):
366
- gr.Markdown(tx['about_text'])
367
- with gr.Accordion(tx['contact'], open=False):
368
- gr.Markdown(tx['contact_text'])
369
- with gr.Accordion(tx['legal'], open=False):
370
- gr.Markdown(tx['legal_text'])
371
 
372
  # ============================================================
373
- # UPDATE UI FUNCTIONS
374
  # ============================================================
375
  def update_ui(lang):
376
  tx = T[lang]
377
- return [
378
  gr.update(value=tx['upload']),
379
- gr.update(value=tx['analyze']),
380
- gr.update(label="📊 " + ("Analysis Report" if lang=="en" else "د تحلیل راپور" if lang=="ps" else "گزارش تحلیل"))
381
- ]
382
 
383
  btn_en.click(lambda: "en", outputs=current_lang).then(
384
- fn=lambda: update_ui("en"),
385
- outputs=[input_image, analyze_btn, result_display]
386
  )
387
  btn_ps.click(lambda: "ps", outputs=current_lang).then(
388
- fn=lambda: update_ui("ps"),
389
- outputs=[input_image, analyze_btn, result_display]
390
  )
391
  btn_fa.click(lambda: "fa", outputs=current_lang).then(
392
- fn=lambda: update_ui("fa"),
393
- outputs=[input_image, analyze_btn, result_display]
394
  )
395
 
396
  # Analyze
@@ -400,4 +328,7 @@ with gr.Blocks(
400
  outputs=result_display
401
  )
402
 
403
- app.launch()
 
 
 
 
35
  | **Specification** | **Detail** |
36
  |---|---|
37
  | AI Model | CNN Deep Learning |
 
38
  | Training Data | 2,870 Real Brain MRI Scans |
 
39
  | Validation Accuracy | 98.3% |
40
  | Test Accuracy | 90% |
41
  | Processing Time | < 3 Seconds |
42
  | Data Privacy | No Image Storage |
 
43
  """,
44
  "about_text": """
45
  ### 👨‍💻 Developer
 
51
 
52
  📅 **Project Year:** 2025
53
  📌 **Version:** 2.0
 
54
  """,
55
  "contact_text": """
56
  ### 📞 Get In Touch
57
 
58
+ - 📧 **Email:** abdulbasir.akbar123@gmail.com
59
+ - 📱 **WhatsApp:** +93770068586
60
+ - 🔗 **LinkedIn:** [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381)
61
+ - 📘 **Facebook:** [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/)
 
 
62
  """,
63
  "legal_text": """
64
  ### © 2025 Abdul Basir Akbar. ALL RIGHTS RESERVED.
 
66
  **Institution:** Department of Biomedical Engineering
67
  Ghazanfar Institute of Health Sciences, Kabul, Afghanistan
68
 
69
+ **🚫 PROHIBITED:** Unauthorized reproduction, commercial use, reverse engineering.
 
 
 
 
 
 
 
 
 
 
 
70
 
71
+ **✅ PERMITTED:** Academic research with citation, non-commercial screening.
 
72
  """
73
  },
74
  "ps": {
 
95
  | **مشخصات** | **جزئیات** |
96
  |---|---|
97
  | AI ماډل | CNN ژورې زده کړې |
 
98
  | روزنیز معلومات | ۲,۸۷۰ ریښتیني MRI سکینونه |
 
99
  | تایید دقت | ۹۸.۳٪ |
100
  | ازموینې دقت | ۹۰٪ |
101
  | پروسس وخت | < ۳ ثانیې |
102
  | معلوماتو محرمیت | هیڅ انځور نه ساتل کېږي |
 
103
  """,
104
  "about_text": """
105
  ### 👨‍💻 جوړونکی
 
111
 
112
  📅 **پروژه کال:** ۲۰۲۵
113
  📌 **نسخه:** ۲.۰
 
114
  """,
115
  "contact_text": """
116
  ### 📞 اړیکه ونیسئ
117
 
118
+ - 📧 **ایمیل:** abdulbasir.akbar123@gmail.com
119
+ - 📱 **واټساپ:** +93770068586
120
+ - 🔗 **لینکډاین:** [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381)
121
+ - 📘 **فیسبوک:** [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/)
 
 
122
  """,
123
  "legal_text": """
124
  ### © ۲۰۲۵ عبدالبصیر اکبر. ټول حقوق خوندي دي.
 
126
  **انسټیټیوټ:** د بایومیډیکل انجینرۍ څانګه
127
  د غضنفر روغتیا علومو انسټیټیوټ، کابل، افغانستان
128
 
129
+ **🚫 منع:** غیر مجاز تکثیر، سوداګریز استعمال، ریورس انجینرۍ.
 
 
 
 
 
130
 
131
+ **✅ اجازه:** د حوالې سره اکاډمیک څیړنه، غیر تجارتي معاینه.
 
 
 
 
 
 
 
132
  """
133
  },
134
  "fa": {
 
155
  | **مشخصات** | **جزئیات** |
156
  |---|---|
157
  | مدل هوش مصنوعی | CNN یادگیری عمیق |
 
158
  | داده‌های آموزشی | ۲,۸۷۰ اسکن واقعی MRI |
 
159
  | دقت اعت��ارسنجی | ۹۸.۳٪ |
160
  | دقت آزمایش | ۹۰٪ |
161
  | زمان پردازش | کمتر از ۳ ثانیه |
162
  | حریم خصوصی | عدم ذخیره تصاویر |
 
163
  """,
164
  "about_text": """
165
  ### 👨‍💻 توسعه‌دهنده
 
171
 
172
  📅 **سال پروژه:** ۲۰۲۵
173
  📌 **نسخه:** ۲.۰
 
174
  """,
175
  "contact_text": """
176
  ### 📞 تماس بگیرید
177
 
178
+ - 📧 **ایمیل:** abdulbasir.akbar123@gmail.com
179
+ - 📱 **واتساپ:** +93770068586
180
+ - 🔗 **لینکداین:** [abdul-basir-akbar](https://www.linkedin.com/in/abdul-basir-akbar-74a255381)
181
+ - 📘 **فیسبوک:** [Abdul Basir Akbar](https://www.facebook.com/share/18SHP5LofX/)
 
 
182
  """,
183
  "legal_text": """
184
  ### © ۲۰۲۵ عبدالبصیر اکبر. تمام حقوق محفوظ است.
 
186
  **انستیتیوت:** بخش مهندسی پزشکی
187
  انستیتیوت علوم صحی غضنفر، کابل، افغانستان
188
 
189
+ **🚫 ممنوع:** تکثیر غیرمجاز، استفاده تجاری، مهندسی معکوس.
 
 
 
 
 
 
 
 
 
 
 
190
 
191
+ **✅ مجاز:** تحقیقات دانشگاهی با ذکر منبع، غربالگری غیرتجاری.
 
192
  """
193
  }
194
  }
 
215
  if prediction > 0.5:
216
  return (
217
  f"{tx['tumor']}\n"
218
+ f"{'─'*35}\n"
219
  f"{tx['confidence']}: {prediction*100:.1f}%\n"
220
  f"{tx['time']}: {now}\n"
221
+ f"{'─'*35}\n"
222
  f"{tx['recommend']}\n\n"
223
  f"_{tx['disclaimer']}_"
224
  )
225
  else:
226
  return (
227
  f"{tx['no_tumor']}\n"
228
+ f"{'─'*35}\n"
229
  f"{tx['confidence']}: {(1-prediction)*100:.1f}%\n"
230
  f"{tx['time']}: {now}\n"
231
+ f"{'─'*35}\n"
232
  f"{tx['normal']}\n\n"
233
  f"_{tx['disclaimer']}_"
234
  )
 
239
  # BUILD MODERN TRI-LINGUAL INTERFACE
240
  # ============================================================
241
  with gr.Blocks(
242
+ theme=gr.themes.Soft(primary_hue="blue"),
243
+ title="NeuroScan AI",
244
  css="""
245
  footer { visibility: hidden; }
 
 
 
 
 
 
 
246
  .dev-badge {
247
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
248
  color: white; padding: 10px 20px; border-radius: 25px;
249
  text-align: center; margin: 15px 0; font-size: 14px;
 
250
  }
251
  """
252
  ) as app:
253
 
254
+ # State
255
  current_lang = gr.State("en")
256
 
257
  # Header
258
  gr.Markdown("""
259
  <div style="text-align:center; padding:20px;">
260
+ <h1 style="font-size:30px; margin:0;">🧠 NeuroScan AI</h1>
261
+ <p style="font-size:14px; color:#666;">AI-Powered Brain Tumor Detection</p>
262
+ <p style="font-size:14px; color:#666;">د مغز تومور تشخیص | تشخیص تومور مغزی</p>
 
 
 
263
  <span style="background:#1a73e8; color:white; padding:5px 16px; border-radius:20px; font-size:12px; font-weight:700;">
264
  🏥 REAL AI MODEL | 90% ACCURACY
265
  </span>
 
267
  """)
268
 
269
  # Language selector
270
+ gr.Markdown("### 🌐 Language | ژبه | زبان")
271
  with gr.Row():
272
+ btn_en = gr.Button("🇬🇧 English", variant="primary", size="sm")
273
+ btn_ps = gr.Button("🇦🇫 پښتو", size="sm")
274
+ btn_fa = gr.Button("🇮🇷 فارسی", size="sm")
275
 
276
+ # Content
277
+ tx = T["en"]
278
+
279
+ gr.Markdown(f"""
280
+ <div style="background:#fff3cd; padding:12px; border-radius:10px; border-left:4px solid #ffc107; margin:10px 0; font-size:12px;">
281
+ {tx['disclaimer']}
282
+ </div>
283
+ """)
284
+
285
+ input_image = gr.Image(type="pil", label=tx['upload'], height=280)
286
+ analyze_btn = gr.Button(tx['analyze'], variant="primary", size="lg")
287
+ result_display = gr.Textbox(label="📊 Result", lines=10)
288
+
289
+ gr.Markdown("""
290
+ <div class="dev-badge">
291
+ 👨‍💻 Developed by <strong>Abdul Basir Akbar</strong> | GIHS | Kabul, Afghanistan | © 2025
292
+ </div>
293
+ """)
294
+
295
+ with gr.Accordion(tx['specs'], open=False):
296
+ gr.Markdown(tx['specs_text'])
297
+ with gr.Accordion(tx['about'], open=False):
298
+ gr.Markdown(tx['about_text'])
299
+ with gr.Accordion(tx['contact'], open=False):
300
+ gr.Markdown(tx['contact_text'])
301
+ with gr.Accordion(tx['legal'], open=False):
302
+ gr.Markdown(tx['legal_text'])
 
 
 
303
 
304
  # ============================================================
305
+ # LANGUAGE UPDATE
306
  # ============================================================
307
  def update_ui(lang):
308
  tx = T[lang]
309
+ return (
310
  gr.update(value=tx['upload']),
311
+ gr.update(value=tx['analyze'])
312
+ )
 
313
 
314
  btn_en.click(lambda: "en", outputs=current_lang).then(
315
+ fn=lambda: update_ui("en"), outputs=[input_image, analyze_btn]
 
316
  )
317
  btn_ps.click(lambda: "ps", outputs=current_lang).then(
318
+ fn=lambda: update_ui("ps"), outputs=[input_image, analyze_btn]
 
319
  )
320
  btn_fa.click(lambda: "fa", outputs=current_lang).then(
321
+ fn=lambda: update_ui("fa"), outputs=[input_image, analyze_btn]
 
322
  )
323
 
324
  # Analyze
 
328
  outputs=result_display
329
  )
330
 
331
+ # ============================================================
332
+ # LAUNCH - FIXED FOR GRADIO 5+
333
+ # ============================================================
334
+ app.launch(ssr_mode=False)