Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def sepia(input_img, num_copies):
|
|
19 |
time.sleep(1)
|
20 |
yield (sepia_img * 255).astype(np.uint8)
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
if __name__ == "__main__":
|
28 |
demo.launch()
|
|
|
19 |
time.sleep(1)
|
20 |
yield (sepia_img * 255).astype(np.uint8)
|
21 |
|
22 |
+
demo = gr.Interface(fn=sepia,
|
23 |
+
inputs=[gr.Image(), gr.Number()],
|
24 |
+
outputs=gr.Image(),
|
25 |
+
title="Sepia Tone Generator")
|
26 |
|
27 |
if __name__ == "__main__":
|
28 |
demo.launch()
|