dream2589632147 commited on
Commit
dccbdc3
·
verified ·
1 Parent(s): 10eab12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -225,7 +225,20 @@ def generate_video(
225
  # =========================================================
226
  # GRADIO UI
227
  # =========================================================
228
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
229
 
230
  # --- PROFESSIONAL YOUTUBE EMBED SECTION ---
231
  gr.HTML("""
@@ -317,5 +330,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
317
  """)
318
 
319
  if __name__ == "__main__":
320
- # تم إزالة mcp_server=True لأنه يسبب مشاكل
321
  demo.queue().launch()
 
225
  # =========================================================
226
  # GRADIO UI
227
  # =========================================================
228
+
229
+ # تعريف كود جوجل أناليتكس ليتم حقنه
230
+ ga_script = """
231
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-1TD40BVM04"></script>
232
+ <script>
233
+ window.dataLayer = window.dataLayer || [];
234
+ function gtag(){dataLayer.push(arguments);}
235
+ gtag('js', new Date());
236
+
237
+ gtag('config', 'G-1TD40BVM04');
238
+ </script>
239
+ """
240
+
241
+ with gr.Blocks(theme=gr.themes.Soft(), head=ga_script) as demo:
242
 
243
  # --- PROFESSIONAL YOUTUBE EMBED SECTION ---
244
  gr.HTML("""
 
330
  """)
331
 
332
  if __name__ == "__main__":
 
333
  demo.queue().launch()