Update run.py
Browse files
run.py
CHANGED
|
@@ -5,7 +5,7 @@ import random
|
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
-
example1 = ["examples/vermeer.jpg","examples/matisse.jpg"]
|
| 9 |
example2 = "examples/matisse.jpg"
|
| 10 |
def fake_gan():
|
| 11 |
images = [
|
|
@@ -40,7 +40,7 @@ with gr.Blocks() as demo:
|
|
| 40 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 41 |
).style(grid=[2], height="auto")
|
| 42 |
|
| 43 |
-
btn.click(fake_gan, None, outputs = [gr.outputs.Image(type="pil"),gr.outputs.Image(type="pil")],api_name='testing')
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|
| 46 |
demo.launch()
|
|
|
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
+
example1 = ["examples/vermeer.jpg","examples/matisse.jpg","examples/10015.jpg","examples/10046.jpg"]
|
| 9 |
example2 = "examples/matisse.jpg"
|
| 10 |
def fake_gan():
|
| 11 |
images = [
|
|
|
|
| 40 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 41 |
).style(grid=[2], height="auto")
|
| 42 |
|
| 43 |
+
btn.click(fake_gan, None, outputs = [gr.outputs.Image(type="pil"),gr.outputs.Image(type="pil"),gr.outputs.Image(type="pil"),gr.outputs.Image(type="pil")],api_name='testing')
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|
| 46 |
demo.launch()
|