JasonData commited on
Commit
82ec8ee
·
verified ·
1 Parent(s): 3c13d67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,2 +1,12 @@
1
  import gradio as gr
2
- gr.Interface.load("spaces/JasonData/Hidden_GEMINI_extractor", src="spaces").launch()
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ import os
3
+
4
+
5
+ HF_TOKEN = os.environ["HF_TOKEN"]
6
+
7
+ url = "spaces/JasonData/Hidden_GEMINI_extractor"
8
+
9
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
10
+ gr.load(url, src="spaces", hf_token=HF_TOKEN)
11
+
12
+ demo.launch()