eldhoskj commited on
Commit
745ec12
1 Parent(s): 5ee4a11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -1,8 +1,16 @@
 
 
 
 
 
 
 
 
 
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()
 
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
+