AbhinavKrishnan36 commited on
Commit
ae7a8a2
·
verified ·
1 Parent(s): aabf231

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import torch
3
  import os
4
- from diffusers import StableDiffusion3Pipeline
5
  from huggingface_hub import InferenceApi
6
 
7
  hf_api_key = os.getenv("PRODIGY_GA_02")
@@ -16,8 +16,8 @@ response = inference(inputs="Your input text here")
16
  print(response)
17
 
18
  # Load model
19
- model_id = "stabilityai/stable-diffusion-3.5-medium"
20
- pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium")
21
 
22
  pipe.to("cuda")# If you have GPU access; otherwise, use "cpu"
23
 
 
1
  import gradio as gr
2
  import torch
3
  import os
4
+ from diffusers import DiffusionPipeline
5
  from huggingface_hub import InferenceApi
6
 
7
  hf_api_key = os.getenv("PRODIGY_GA_02")
 
16
  print(response)
17
 
18
  # Load model
19
+ model_id = "stable-diffusion-v1-5/stable-diffusion-v1-5"
20
+ pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5")
21
 
22
  pipe.to("cuda")# If you have GPU access; otherwise, use "cpu"
23