Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,24 +93,6 @@ load_network(model, MODEL_NAME, strict=True, param_key='params')
|
|
93 |
|
94 |
|
95 |
|
96 |
-
#### Image,Prompts examples
|
97 |
-
examples = [
|
98 |
-
['images/0801x4.png'],
|
99 |
-
['images/0840x4.png'],
|
100 |
-
['images/0841x4.png'],
|
101 |
-
['images/0870x4.png'],
|
102 |
-
['images/0878x4.png'],
|
103 |
-
['images/0884x4.png'],
|
104 |
-
['images/0900x4.png'],
|
105 |
-
['images/img002x4.png'],
|
106 |
-
['images/img003x4.png'],
|
107 |
-
['images/img004x4.png'],
|
108 |
-
['images/img035x4.png'],
|
109 |
-
['images/img053x4.png'],
|
110 |
-
['images/img064x4.png'],
|
111 |
-
['images/img083x4.png'],
|
112 |
-
['images/img092x4.png'],
|
113 |
-
]
|
114 |
|
115 |
css = """
|
116 |
.image-frame img, .image-container img {
|
@@ -123,8 +105,8 @@ css = """
|
|
123 |
|
124 |
demo = gr.Interface(
|
125 |
fn=process_img,
|
126 |
-
inputs=[gr.Image(type="pil", label="
|
127 |
-
outputs=ImageSlider(label="
|
128 |
type="pil",
|
129 |
show_download_button=True,
|
130 |
), #[gr.Image(type="pil", label="Ouput", min_width=500)],
|
|
|
93 |
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
css = """
|
98 |
.image-frame img, .image-container img {
|
|
|
105 |
|
106 |
demo = gr.Interface(
|
107 |
fn=process_img,
|
108 |
+
inputs=[gr.Image(type="pil", label="Изображение"),],
|
109 |
+
outputs=ImageSlider(label="Улучшеное изображение",
|
110 |
type="pil",
|
111 |
show_download_button=True,
|
112 |
), #[gr.Image(type="pil", label="Ouput", min_width=500)],
|