Update app.py
#2
by
chris-rannou
HF Staff
- opened
app.py
CHANGED
|
@@ -3,6 +3,9 @@ import gradio as gr
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
def list_private_models(oauth_profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
| 7 |
if oauth_token is None:
|
| 8 |
return "Please log in to list private models."
|
|
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
|
| 5 |
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
def list_private_models(oauth_profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
| 10 |
if oauth_token is None:
|
| 11 |
return "Please log in to list private models."
|