Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -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/SurgeryChatStats", src="spaces", token=token)
|
| 9 |
+
demo.launch()
|