Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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)
|