SepDevX commited on
Commit
3290ba6
·
verified ·
1 Parent(s): e4409f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -80,7 +80,9 @@ google_analytics_code = """
80
  """
81
 
82
  # Gradio interface
83
- with gr.Interface(fn=main, inputs=[gr.Textbox(label="Enter video description"), gr.Textbox(label="Enter your Hugging Face API key")], outputs=[gr.Textbox(), gr.File()]) as demo:
84
- # Adding Google Analytics code to extra_html
85
- demo.embed.add_extra_html(google_analytics_code) # Add Google Analytics script
86
- demo.launch(share=True) # launch with share enabled
 
 
 
80
  """
81
 
82
  # Gradio interface
83
+ with gr.Blocks() as demo:
84
+ # Adding Google Analytics HTML
85
+ gr.HTML(google_analytics_code) # Add Google Analytics code here
86
+
87
+ # Interface
88
+ gr.Interface(fn=main, inputs=[gr.Textbox(label="Enter video description"), gr.Textbox(label="Enter your Hugging Face API key")], outputs=[gr.Textbox(), gr.File()]).launch(share=True)