hoh2000 commited on
Commit
0a5bf53
·
verified ·
1 Parent(s): 9cea247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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
- print(f"Model files downloaded to: {local_dir}")
 
 
 
 
 
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()