Spaces:
Running
on
Zero
Running
on
Zero
intial commit
Browse files- app.py +10 -5
- requirements.txt +5 -0
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from gradio_imageslider import ImageSlider
|
3 |
|
4 |
+
with gr.Blocks() as demo:
|
5 |
+
with gr.Row():
|
6 |
+
with gr.Column():
|
7 |
+
input_image = gr.Image(type="pil", label="Input Image")
|
8 |
+
run_button = gr.Button("Upscale")
|
9 |
+
with gr.Column():
|
10 |
+
result = ImageSlider(
|
11 |
+
interactive=False, label="Generated Image", elem_id="result-image", position=0.1
|
12 |
+
)
|
requirements.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
git+https://github.com/asomoza/image_gen_aux.git
|
3 |
+
spaces
|
4 |
+
gradio
|
5 |
+
gradio-imageslider
|