OzzyGT HF staff commited on
Commit
d127695
1 Parent(s): 09fb9f0

intial commit

Browse files
Files changed (2) hide show
  1. app.py +10 -5
  2. requirements.txt +5 -0
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
 
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