hoh2000 commited on
Commit
3ec475e
·
verified ·
1 Parent(s): 1bfb936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -8,4 +8,11 @@ def show_path():
8
  return f"Model downloaded to: {local_dir}"
9
 
10
  gr.Interface(fn=show_path, inputs=None, outputs="text").launch()
11
- demo.launch(share=True)
 
 
 
 
 
 
 
 
8
  return f"Model downloaded to: {local_dir}"
9
 
10
  gr.Interface(fn=show_path, inputs=None, outputs="text").launch()
11
+ demo.launch(share=True)
12
+
13
+ from diffusers import DiffusionPipeline
14
+
15
+ pipe = DiffusionPipeline.from_pretrained("cloudqi/cqi_text_to_image_pt_v0")
16
+
17
+ prompt = "Gato em alta qualidade na neve\n"
18
+ image = pipe(prompt).images[0]