Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ st.title("Make Your Videos More Beautiful with Devticks services")
|
|
38 |
|
39 |
#image uploader
|
40 |
image = st.file_uploader(label = "Upload your image here",type=['png','jpg','jpeg'])
|
41 |
-
|
42 |
|
43 |
@st.cache
|
44 |
def load_model():
|
@@ -58,7 +58,6 @@ if image is not None:
|
|
58 |
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
|
59 |
pipe.to("cuda")
|
60 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
61 |
-
prompt = st.text_input("Enter your prompt here")
|
62 |
images = pipe(prompt, image=image, num_inference_steps=10, image_guidance_scale=1).images
|
63 |
|
64 |
images[0].show()
|
|
|
38 |
|
39 |
#image uploader
|
40 |
image = st.file_uploader(label = "Upload your image here",type=['png','jpg','jpeg'])
|
41 |
+
prompt = st.text_input("Enter your prompt here")
|
42 |
|
43 |
@st.cache
|
44 |
def load_model():
|
|
|
58 |
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
|
59 |
pipe.to("cuda")
|
60 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
|
|
61 |
images = pipe(prompt, image=image, num_inference_steps=10, image_guidance_scale=1).images
|
62 |
|
63 |
images[0].show()
|