Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
hf_token=os.
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
gr.load("models/imcapsule/tasomi-capsule").launch()
|
|
|
1 |
+
# import gradio as gr
|
2 |
+
# import os
|
3 |
+
|
4 |
+
# hf_token=os.getenv("hf_token")
|
5 |
+
# HF_TOKEN =os.getenv("HF_TOKEN")
|
6 |
+
# print(hf_token)
|
7 |
+
# print(HF_TOKEN)
|
8 |
+
# gr.load("models/imcapsule/tasomi-capsule").launch()
|
9 |
+
|
10 |
import gradio as gr
|
11 |
import os
|
12 |
|
13 |
+
hf_token = os.environ.get("HF_TOKEN")
|
14 |
+
|
15 |
+
gr.load("models/imcapsule/tasomi-capsule", src="models",hf_token).launch()
|
16 |
+
|
|