Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -297,36 +297,36 @@ text_btn.click(model, text_prompt, image_output)
|
|
297 |
|
298 |
|
299 |
btn.click(summary, input_text, output_text)
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
"Rainbow", "Night Vision",
|
320 |
-
# Special Effects
|
321 |
-
"Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect",
|
322 |
-
# Artistic Filters
|
323 |
-
"Pop Art", "Oil Paint", "Cartoon",
|
324 |
-
# Atmospheric Filters
|
325 |
-
"Autumn", "Increase Brightness"
|
326 |
-
],
|
327 |
label="🎭 Select Filter",
|
328 |
info="Choose the effect you want"
|
329 |
-
)
|
330 |
submit_button = gr.Button("✨ Apply Filter", variant="primary")
|
331 |
|
332 |
with gr.Column():
|
|
|
297 |
|
298 |
|
299 |
btn.click(summary, input_text, output_text)
|
300 |
+
with gr.Tab("Flip Image"):
|
301 |
+
with gr.Row():
|
302 |
+
image_input = gr.Image(type="numpy", label="Upload Image")
|
303 |
+
image_output = gr.Image(format="png")
|
304 |
+
with gr.Row():
|
305 |
+
image_button = gr.Button("Run", variant='primary')
|
306 |
+
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
307 |
+
with gr.Tab("Image Filters"):
|
308 |
+
with gr.Row():
|
309 |
+
with gr.Column():
|
310 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
311 |
+
with gr.Accordion("ℹ️ Filter Categories", open=True):
|
312 |
+
filter_type = gr.Dropdown(
|
313 |
+
[
|
314 |
+
# Basic Filters
|
315 |
+
"Gray Toning", "Sepia", "X-ray", "Burn it",
|
316 |
+
# Classic Filter
|
317 |
+
"Charcoal Effect", "Sharpen", "Embossing", "Edge Detection",
|
318 |
+
# Creative Filters
|
319 |
+
"Rainbow", "Night Vision",
|
320 |
+
# Special Effects
|
321 |
+
"Matrix Effect", "Wave Effect", "Time Stamp", "Glitch Effect",
|
322 |
+
# Artistic Filters
|
323 |
+
"Pop Art", "Oil Paint", "Cartoon",
|
324 |
+
# Atmospheric Filters
|
325 |
+
"Autumn", "Increase Brightness"
|
326 |
+
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
label="🎭 Select Filter",
|
328 |
info="Choose the effect you want"
|
329 |
+
)
|
330 |
submit_button = gr.Button("✨ Apply Filter", variant="primary")
|
331 |
|
332 |
with gr.Column():
|