Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files- .gitignore +3 -0
- README.md +0 -1
- app.py +6 -5
- requirements.txt +1 -2
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
.venv/
|
2 |
+
.vscode/
|
3 |
+
**/__pycache__/
|
README.md
CHANGED
@@ -4,7 +4,6 @@ emoji: 🏃
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.38.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
from gradio_imageslider import ImageSlider
|
4 |
from image_gen_aux import UpscaleWithModel
|
5 |
from image_gen_aux.utils import load_image
|
6 |
|
|
|
7 |
MODELS = {
|
8 |
"UltraSharp": "Kim2091/UltraSharp",
|
9 |
"DAT X4": "OzzyGT/DAT_X4",
|
@@ -29,9 +29,10 @@ def clear_result():
|
|
29 |
return gr.update(value=None)
|
30 |
|
31 |
|
32 |
-
title = """<
|
33 |
-
<div align="center">This space is a showcase of the different super resolution models
|
34 |
-
<a href="https://github.com/asomoza/image_gen_aux">Image
|
|
|
35 |
"""
|
36 |
|
37 |
with gr.Blocks() as demo:
|
@@ -48,7 +49,7 @@ with gr.Blocks() as demo:
|
|
48 |
|
49 |
run_button = gr.Button("Upscale")
|
50 |
with gr.Column():
|
51 |
-
result = ImageSlider(
|
52 |
interactive=False,
|
53 |
label="Generated Image",
|
54 |
)
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
|
|
3 |
from image_gen_aux import UpscaleWithModel
|
4 |
from image_gen_aux.utils import load_image
|
5 |
|
6 |
+
|
7 |
MODELS = {
|
8 |
"UltraSharp": "Kim2091/UltraSharp",
|
9 |
"DAT X4": "OzzyGT/DAT_X4",
|
|
|
29 |
return gr.update(value=None)
|
30 |
|
31 |
|
32 |
+
title = """<h2 align="center">Image Upscaler</h2>
|
33 |
+
<div align="center">This space is a showcase of the different super resolution models
|
34 |
+
you can use to upscale with the <a href="https://github.com/asomoza/image_gen_aux">Image
|
35 |
+
Generation Auxiliary Tools</a> library.</div>
|
36 |
"""
|
37 |
|
38 |
with gr.Blocks() as demo:
|
|
|
49 |
|
50 |
run_button = gr.Button("Upscale")
|
51 |
with gr.Column():
|
52 |
+
result = gr.ImageSlider(
|
53 |
interactive=False,
|
54 |
label="Generated Image",
|
55 |
)
|
requirements.txt
CHANGED
@@ -2,5 +2,4 @@ torch
|
|
2 |
git+https://github.com/asomoza/image_gen_aux.git
|
3 |
spaces
|
4 |
gradio
|
5 |
-
|
6 |
-
numpy==1.26.4
|
|
|
2 |
git+https://github.com/asomoza/image_gen_aux.git
|
3 |
spaces
|
4 |
gradio
|
5 |
+
numpy
|
|