Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import numpy as np
|
|
3 |
import tempfile
|
4 |
import shutil
|
5 |
import os
|
6 |
-
from zipfile import ZipFile
|
7 |
|
8 |
def sepia(input_img, num_copies):
|
9 |
sepia_filter = np.array([
|
@@ -26,7 +25,7 @@ with gr.Blocks() as demo:
|
|
26 |
|
27 |
|
28 |
input_img.change(fn=lambda x: x, inputs=input_img, outputs=gallery)
|
29 |
-
num_copies.change(fn=lambda x: x, inputs=num_copies, outputs=gallery)
|
30 |
|
31 |
generate_btn = gr.Button("Generate Sepia Images")
|
32 |
generate_btn.click(fn=sepia, inputs=[input_img, num_copies], outputs=gallery)
|
|
|
3 |
import tempfile
|
4 |
import shutil
|
5 |
import os
|
|
|
6 |
|
7 |
def sepia(input_img, num_copies):
|
8 |
sepia_filter = np.array([
|
|
|
25 |
|
26 |
|
27 |
input_img.change(fn=lambda x: x, inputs=input_img, outputs=gallery)
|
28 |
+
#num_copies.change(fn=lambda x: x, inputs=num_copies, outputs=gallery)
|
29 |
|
30 |
generate_btn = gr.Button("Generate Sepia Images")
|
31 |
generate_btn.click(fn=sepia, inputs=[input_img, num_copies], outputs=gallery)
|