Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import subprocess
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
subprocess.run(["git", "clone", "https://github.com/huggingface/diffusers.git", "diff"])
|
|
@@ -12,7 +13,7 @@ def convert(token: str, model_id: str) -> str:
|
|
| 12 |
"""
|
| 13 |
try:
|
| 14 |
api = HfApi(token=token)
|
| 15 |
-
info = api.ModelInfo(
|
| 16 |
return info
|
| 17 |
|
| 18 |
except Exception as e:
|
|
|
|
| 1 |
import subprocess
|
| 2 |
+
from huggingface_hub import HfApi, Repository
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
subprocess.run(["git", "clone", "https://github.com/huggingface/diffusers.git", "diff"])
|
|
|
|
| 13 |
"""
|
| 14 |
try:
|
| 15 |
api = HfApi(token=token)
|
| 16 |
+
info = api.ModelInfo(model_id)
|
| 17 |
return info
|
| 18 |
|
| 19 |
except Exception as e:
|