Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -284,12 +284,8 @@ css = """
|
|
284 |
with gr.Blocks(theme=theme, css=css) as app:
|
285 |
gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
|
286 |
with gr.Tab("Text to Image"):
|
287 |
-
|
288 |
-
|
289 |
-
#gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
290 |
-
#gr.load("stabilityai/stable-diffusion-3-medium-diffusers")
|
291 |
-
gr.load("models/dvyio/flux-lora-film-noir")
|
292 |
-
|
293 |
with gr.Tab("Flip Image"):
|
294 |
with gr.Row():
|
295 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
@@ -297,11 +293,6 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
297 |
with gr.Row():
|
298 |
image_button = gr.Button("Run", variant='primary')
|
299 |
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
300 |
-
|
301 |
-
with gr.Row():
|
302 |
-
image_button = gr.Button("Run", variant='primary')
|
303 |
-
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
304 |
-
|
305 |
with gr.Tab("Image Filters"):
|
306 |
with gr.Row():
|
307 |
with gr.Column():
|
@@ -328,7 +319,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
328 |
submit_button = gr.Button("✨ Apply Filter", variant="primary")
|
329 |
|
330 |
with gr.Column():
|
331 |
-
image_output = gr.Image(label="🖼️ Filtered Image"
|
332 |
|
333 |
submit_button.click(
|
334 |
image_processing,
|
@@ -336,17 +327,6 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
336 |
outputs=image_output
|
337 |
)
|
338 |
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
def upscale_image(input_image, radio_input):
|
343 |
-
upscale_factor = radio_input
|
344 |
-
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
|
345 |
-
return output_image
|
346 |
-
|
347 |
-
radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
|
348 |
-
|
349 |
-
iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
|
350 |
-
|
351 |
-
|
352 |
-
app.launch(share=True)
|
|
|
284 |
with gr.Blocks(theme=theme, css=css) as app:
|
285 |
gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
|
286 |
with gr.Tab("Text to Image"):
|
287 |
+
#gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
288 |
+
gr.load("models/XLabs-AI/flux-RealismLora")
|
|
|
|
|
|
|
|
|
289 |
with gr.Tab("Flip Image"):
|
290 |
with gr.Row():
|
291 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
|
|
293 |
with gr.Row():
|
294 |
image_button = gr.Button("Run", variant='primary')
|
295 |
image_button.click(flip_image, inputs=image_input, outputs=image_output)
|
|
|
|
|
|
|
|
|
|
|
296 |
with gr.Tab("Image Filters"):
|
297 |
with gr.Row():
|
298 |
with gr.Column():
|
|
|
319 |
submit_button = gr.Button("✨ Apply Filter", variant="primary")
|
320 |
|
321 |
with gr.Column():
|
322 |
+
image_output = gr.Image(label="🖼️ Filtered Image")
|
323 |
|
324 |
submit_button.click(
|
325 |
image_processing,
|
|
|
327 |
outputs=image_output
|
328 |
)
|
329 |
|
330 |
+
|
331 |
+
app.launch(share=True)
|
332 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|