Spaces:
Sleeping
Sleeping
hubsnippetai
commited on
Commit
•
293bbdb
1
Parent(s):
a5d4485
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
# import gradio as gr
|
2 |
# app = gr.Interface.load('hubsnippetai/jupyterlab').launch()
|
3 |
#import os
|
4 |
-
#secret = os.getenv('huggingfacesecret')
|
5 |
|
6 |
import os
|
7 |
from huggingface_hub import HfApi
|
8 |
|
9 |
-
|
|
|
10 |
api = HfApi()
|
11 |
api.login(token=secret)
|
12 |
|
|
|
1 |
# import gradio as gr
|
2 |
# app = gr.Interface.load('hubsnippetai/jupyterlab').launch()
|
3 |
#import os
|
|
|
4 |
|
5 |
import os
|
6 |
from huggingface_hub import HfApi
|
7 |
|
8 |
+
secret = os.getenv('huggingfacesecret')
|
9 |
+
#token = os.getenv('HF_API_TOKEN')repo_id="hubsnippetai/medapp"
|
10 |
api = HfApi()
|
11 |
api.login(token=secret)
|
12 |
|