Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/README-checkpoint.md +12 -0
- .ipynb_checkpoints/app-checkpoint.py +20 -0
- .ipynb_checkpoints/requirements-checkpoint.txt +1 -0
- README.md +8 -8
- app.py +20 -0
- requirements.txt +1 -0
.ipynb_checkpoints/README-checkpoint.md
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: ai-worker-vision-point
|
3 |
+
emoji: π―
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: purple
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 4.1.1
|
8 |
+
app_file: app.py
|
9 |
+
pinned: true
|
10 |
+
license: apache-2.0
|
11 |
+
---
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
.ipynb_checkpoints/app-checkpoint.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
read_key = os.environ.get('HF_TOKEN', None)
|
5 |
+
|
6 |
+
with gr.Blocks() as app:
|
7 |
+
gr.load("xnohat/ai-worker-vision-pointer", hf_token=read_key, src="spaces")
|
8 |
+
|
9 |
+
app.queue(api_open=True)#, concurrency_count=100)
|
10 |
+
app.launch(
|
11 |
+
debug=True,
|
12 |
+
#auth_message="Please login to access AI API",
|
13 |
+
#auth=["ai","enterthematrix"],
|
14 |
+
show_error=True,
|
15 |
+
share=True,
|
16 |
+
show_api=True,
|
17 |
+
#server_name='0.0.0.0',
|
18 |
+
#server_port=8310,
|
19 |
+
max_threads=100
|
20 |
+
)
|
.ipynb_checkpoints/requirements-checkpoint.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio==4.1.1
|
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
|
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: ai-worker-vision-point
|
3 |
+
emoji: π―
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.1.1
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
+
license: apache-2.0
|
11 |
---
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
|
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
read_key = os.environ.get('HF_TOKEN', None)
|
5 |
+
|
6 |
+
with gr.Blocks() as app:
|
7 |
+
gr.load("xnohat/ai-worker-vision-pointer", hf_token=read_key, src="spaces")
|
8 |
+
|
9 |
+
app.queue(api_open=True)#, concurrency_count=100)
|
10 |
+
app.launch(
|
11 |
+
debug=True,
|
12 |
+
#auth_message="Please login to access AI API",
|
13 |
+
#auth=["ai","enterthematrix"],
|
14 |
+
show_error=True,
|
15 |
+
share=True,
|
16 |
+
show_api=True,
|
17 |
+
#server_name='0.0.0.0',
|
18 |
+
#server_port=8310,
|
19 |
+
max_threads=100
|
20 |
+
)
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio==4.1.1
|