shivanis14 commited on
Commit
d3a5895
·
verified ·
1 Parent(s): fc91bfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
 
 
2
  #gr.Interface.load("huggingface/google/vit-base-patch16-224").launch(share=True)
 
3
 
4
  # Load the private Space (replace 'your-username/private-space' with your actual private Space path)
5
- iface = gr.Interface.load("huggingface/shivanis14/FastMotionDetection")
6
  print(type(iface))
7
  # Launch the interface
8
  iface.launch(share=True)
 
1
  import gradio as gr
2
+ import os
3
+
4
  #gr.Interface.load("huggingface/google/vit-base-patch16-224").launch(share=True)
5
+ read_key = os.environ.get('HF_TOKEN', None)
6
 
7
  # Load the private Space (replace 'your-username/private-space' with your actual private Space path)
8
+ iface = gr.load("shivanis14/FastMotionDetection", hf_token=read_key, src="spaces")
9
  print(type(iface))
10
  # Launch the interface
11
  iface.launch(share=True)