Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
from huggingface_hub import snapshot_download
|
|
|
2 |
|
|
|
3 |
local_dir = snapshot_download(repo_id="cloudqi/cqi_text_to_image_pt_v0")
|
4 |
-
|
|
|
|
|
|
|
|
|
|
1 |
from huggingface_hub import snapshot_download
|
2 |
+
import gradio as gr
|
3 |
|
4 |
+
# Download the model to cache or local dir
|
5 |
local_dir = snapshot_download(repo_id="cloudqi/cqi_text_to_image_pt_v0")
|
6 |
+
|
7 |
+
def show_path():
|
8 |
+
return f"Model downloaded to: {local_dir}"
|
9 |
+
|
10 |
+
gr.Interface(fn=show_path, inputs=None, outputs="text").launch()
|