metek7 commited on
Commit
b9cc1bb
Β·
verified Β·
1 Parent(s): 7700a40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,7 +1,6 @@
1
 
2
-
3
- from diffusers import StableDiffusionPipeline
4
- import torch
5
 
6
  model_id = "runwayml/stable-diffusion-v1-5"
7
  sd_pipeline = StableDiffusionPipeline.from_pretrained(model_id,
@@ -32,10 +31,12 @@ sd_image.save("./llama.jpg")
32
 
33
 
34
 
35
-
 
 
 
36
  import gradio as gr
37
 
38
-
39
  def get_completion(prompt):
40
  negative_prompt = """
41
  simple background, duplicate, low quality, lowest quality,
 
1
 
2
+ !pip install diffusers
3
+ !pip install transformers
 
4
 
5
  model_id = "runwayml/stable-diffusion-v1-5"
6
  sd_pipeline = StableDiffusionPipeline.from_pretrained(model_id,
 
31
 
32
 
33
 
34
+ !pip install gradio
35
+ !pip install h5py
36
+ !pip install typing-extensions
37
+ !pip install wheel
38
  import gradio as gr
39
 
 
40
  def get_completion(prompt):
41
  negative_prompt = """
42
  simple background, duplicate, low quality, lowest quality,