Hugging Face
Search models, datasets, users...
Ctrl K
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
alexdatamed
/
SurgeryChatUI
Like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
alexdatamed
commited on
Apr 30
Commit
ffb36db
·
verified
·
1 Parent(s):
052f47b
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import os
2
+
import gradio as gr
3
+
4
+
#token
5
+
token = os.getenv("HF_TOKEN")
6
+
assert token, "HF_TOKEN secret missing"
7
+
8
+
demo = gr.load("alexdatamed/SurgeryChat", src="spaces", token=token)
9
+
demo.launch()