Spaces:
Sleeping
Sleeping
hubsnippetai
commited on
Commit
•
ee36ff2
1
Parent(s):
293bbdb
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ 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(
|
12 |
|
13 |
# Access your private space or model
|
14 |
private_model = api.model_info("hubsnippetai/medapp")
|
|
|
7 |
|
8 |
secret = os.getenv('huggingfacesecret')
|
9 |
#token = os.getenv('HF_API_TOKEN')repo_id="hubsnippetai/medapp"
|
10 |
+
api = HfApi(token=secret)
|
11 |
+
#api.login()
|
12 |
|
13 |
# Access your private space or model
|
14 |
private_model = api.model_info("hubsnippetai/medapp")
|