Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,8 +158,8 @@ def load_pil_img():
|
|
| 158 |
from PIL import Image
|
| 159 |
return Image.open("example_tmp/text/out_text_0.png")
|
| 160 |
|
| 161 |
-
def change_image(
|
| 162 |
-
return
|
| 163 |
|
| 164 |
|
| 165 |
import shutil
|
|
@@ -315,8 +315,8 @@ with gr.Blocks() as demo:
|
|
| 315 |
return load_pil_img()
|
| 316 |
|
| 317 |
example_inps = [['./img.png'],['./img2.png']]
|
| 318 |
-
gr.Examples(examples=example_inps, inputs=[
|
| 319 |
-
label='examples', cache_examples='lazy', outputs=[
|
| 320 |
fn=change_image)
|
| 321 |
|
| 322 |
|
|
|
|
| 158 |
from PIL import Image
|
| 159 |
return Image.open("example_tmp/text/out_text_0.png")
|
| 160 |
|
| 161 |
+
def change_image(img):
|
| 162 |
+
return None
|
| 163 |
|
| 164 |
|
| 165 |
import shutil
|
|
|
|
| 315 |
return load_pil_img()
|
| 316 |
|
| 317 |
example_inps = [['./img.png'],['./img2.png']]
|
| 318 |
+
gr.Examples(examples=example_inps, inputs=[canvas],
|
| 319 |
+
label='examples', cache_examples='lazy', outputs=[],
|
| 320 |
fn=change_image)
|
| 321 |
|
| 322 |
|