Spaces:
Configuration error
Configuration error
root commited on
Commit ·
168c086
1
Parent(s): 9778d56
app
Browse files
app.py
CHANGED
|
@@ -177,68 +177,68 @@ def ui():
|
|
| 177 |
output = gr.Image(label="Output Image Component",
|
| 178 |
height=512, width=512)
|
| 179 |
|
| 180 |
-
with gr.Row():
|
| 181 |
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
|
| 200 |
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
|
| 225 |
-
|
| 226 |
|
| 227 |
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
|
| 243 |
|
| 244 |
preprocess_button.click(
|
|
|
|
| 177 |
output = gr.Image(label="Output Image Component",
|
| 178 |
height=512, width=512)
|
| 179 |
|
| 180 |
+
# with gr.Row():
|
| 181 |
|
| 182 |
+
# examples_img_1 = [
|
| 183 |
+
# [Image.open("assets/corridor.png")],
|
| 184 |
+
# [Image.open("assets/desert.png")],
|
| 185 |
+
# [Image.open("assets/forest.png")],
|
| 186 |
+
# [Image.open("assets/forest_painting.png")],
|
| 187 |
+
# [Image.open("assets/golf_field.png")],
|
| 188 |
+
# [Image.open("assets/human.png")],
|
| 189 |
+
# [Image.open("assets/wood.png")],
|
| 190 |
+
# [Image.open("assets/house.png")],
|
| 191 |
|
| 192 |
+
# [Image.open("assets/apple.png")],
|
| 193 |
+
# [Image.open("assets/chair.png")],
|
| 194 |
+
# [Image.open("assets/hands.png")],
|
| 195 |
+
# [Image.open("assets/pineapple.png")],
|
| 196 |
+
# [Image.open("assets/table.png")],
|
| 197 |
+
# ]
|
| 198 |
+
# gr.Examples(examples=examples_img_1,inputs=[image_input], label="Images")
|
| 199 |
|
| 200 |
|
| 201 |
+
# # examples_img_2 = [
|
| 202 |
+
# # [Image.open("assets/apple.png")],
|
| 203 |
+
# # [Image.open("assets/chair.png")],
|
| 204 |
+
# # [Image.open("assets/hands.png")],
|
| 205 |
+
# # [Image.open("assets/pineapple.png")],
|
| 206 |
+
# # [Image.open("assets/table.png")],
|
| 207 |
+
# # ]
|
| 208 |
+
# # gr.Examples(examples=examples,inputs=[image_input], label="Greatest Hits Images")
|
| 209 |
|
| 210 |
+
# examples2 = [
|
| 211 |
+
# ['./assets/fire_crackling.wav'],
|
| 212 |
+
# ['./assets/forest_birds.wav'],
|
| 213 |
+
# ['./assets/forest_stepping_on_branches.wav'],
|
| 214 |
+
# ['./assets/howling_wind.wav'],
|
| 215 |
+
# ['./assets/rain.wav'],
|
| 216 |
+
# ['./assets/splashing_water.wav'],
|
| 217 |
+
# ['./assets/splashing_water_soft.wav'],
|
| 218 |
+
# ['./assets/steps_on_snow.wav'],
|
| 219 |
+
# ['./assets/thunder.wav'],
|
| 220 |
+
# ['./assets/underwater.wav'],
|
| 221 |
+
# ['./assets/waterfall_burble.wav'],
|
| 222 |
+
# ['./assets/wind_noise_birds.wav'],
|
| 223 |
+
# ]
|
| 224 |
|
| 225 |
+
# gr.Examples(examples=examples2,inputs=[audio_input], label="Landscape Audios")
|
| 226 |
|
| 227 |
|
| 228 |
+
# examples3 = [
|
| 229 |
+
# ['./assets/cardboard.wav'],
|
| 230 |
+
# ['./assets/carpet.wav'],
|
| 231 |
+
# ['./assets/ceramic.wav'],
|
| 232 |
+
# ['./assets/cloth.wav'],
|
| 233 |
+
# ['./assets/gravel.wav'],
|
| 234 |
+
# ['./assets/leaf.wav'],
|
| 235 |
+
# ['./assets/metal.wav'],
|
| 236 |
+
# ['./assets/plastic_bag.wav'],
|
| 237 |
+
# ['./assets/plastic.wav'],
|
| 238 |
+
# ['./assets/rock.wav'],
|
| 239 |
+
# ['./assets/wood.wav'],
|
| 240 |
+
# ]
|
| 241 |
+
# gr.Examples(examples=examples3,inputs=[audio_input], label="Greatest Hits Audios")
|
| 242 |
|
| 243 |
|
| 244 |
preprocess_button.click(
|