Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -87,6 +87,7 @@ style_options = {k: f'./style_images/{v}' for k, v in style_options.items()}
|
|
87 |
|
88 |
@spaces.GPU
|
89 |
def inference(content_image, style_image, progress=gr.Progress(track_tqdm=True)):
|
|
|
90 |
print('-'*15)
|
91 |
print('STYLE:', style_image)
|
92 |
img_size = 512
|
@@ -133,7 +134,7 @@ def inference(content_image, style_image, progress=gr.Progress(track_tqdm=True))
|
|
133 |
|
134 |
et = time.time()
|
135 |
print('TIME TAKEN:', et-st)
|
136 |
-
|
137 |
|
138 |
|
139 |
interface = gr.Interface(
|
|
|
87 |
|
88 |
@spaces.GPU
|
89 |
def inference(content_image, style_image, progress=gr.Progress(track_tqdm=True)):
|
90 |
+
yield None
|
91 |
print('-'*15)
|
92 |
print('STYLE:', style_image)
|
93 |
img_size = 512
|
|
|
134 |
|
135 |
et = time.time()
|
136 |
print('TIME TAKEN:', et-st)
|
137 |
+
yield content_image, save_img(generated_img, original_size)
|
138 |
|
139 |
|
140 |
interface = gr.Interface(
|