Spaces:
Runtime error
Runtime error
Commit
·
1259c40
1
Parent(s):
e281d3d
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def generate_image(image, product_name, target_name):
|
|
87 |
num_samples = 4
|
88 |
|
89 |
prompt = target_name
|
90 |
-
generator = torch.Generator(device=
|
91 |
|
92 |
im = IPpipe(
|
93 |
prompt=prompt,
|
@@ -123,7 +123,7 @@ for code in codes_as_string:
|
|
123 |
import gradio as gr
|
124 |
import gc
|
125 |
gc.collect()
|
126 |
-
|
127 |
image_label = 'Please upload the image (optional)'
|
128 |
extract_label = 'Specify what need to be extracted from the above image'
|
129 |
prompt_label = 'Specify the description of image to be generated'
|
|
|
87 |
num_samples = 4
|
88 |
|
89 |
prompt = target_name
|
90 |
+
generator = torch.Generator(device=device).manual_seed(22) # change the seed to get different results
|
91 |
|
92 |
im = IPpipe(
|
93 |
prompt=prompt,
|
|
|
123 |
import gradio as gr
|
124 |
import gc
|
125 |
gc.collect()
|
126 |
+
|
127 |
image_label = 'Please upload the image (optional)'
|
128 |
extract_label = 'Specify what need to be extracted from the above image'
|
129 |
prompt_label = 'Specify the description of image to be generated'
|