xnohat's picture
Upload folder using huggingface_hub
5ba64f1 verified
raw
history blame contribute delete
556 Bytes
import os
import gradio as gr
read_key = os.environ.get('HF_TOKEN', None)
with gr.Blocks() as app:
gr.load("xnohat/ai-worker-vision-pointer", hf_token=read_key, src="spaces")
app.queue(api_open=True)#, concurrency_count=100)
app.launch(
debug=True,
#auth_message="Please login to access AI API",
#auth=["ai","enterthematrix"],
show_error=True,
share=True,
show_api=True,
#server_name='0.0.0.0',
#server_port=8310,
max_threads=100
)