Update app.py
Browse files
app.py
CHANGED
|
@@ -24,10 +24,10 @@ types=[
|
|
| 24 |
def show_f(model_id,d_app,token):
|
| 25 |
api = HfApi(token=token)
|
| 26 |
author=model_id.split("/",1)[0]
|
| 27 |
-
|
| 28 |
-
print (
|
| 29 |
|
| 30 |
-
for key, value in
|
| 31 |
if key == 'id':
|
| 32 |
print (value)
|
| 33 |
|
|
|
|
| 24 |
def show_f(model_id,d_app,token):
|
| 25 |
api = HfApi(token=token)
|
| 26 |
author=model_id.split("/",1)[0]
|
| 27 |
+
s_ist = (api.list_spaces(author=author))
|
| 28 |
+
print (s_ist)
|
| 29 |
|
| 30 |
+
for key, value in s_ist.items():
|
| 31 |
if key == 'id':
|
| 32 |
print (value)
|
| 33 |
|