DigiP-AI commited on
Commit
e8e9e3e
·
verified ·
1 Parent(s): dc259b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -279,12 +279,6 @@ def image_processing(image, filter_type):
279
 
280
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
281
 
282
- model="dvyio/flux-lora-film-noir"
283
- imagegen = pipeline("imagegen", model)
284
-
285
- def image_gen(image):
286
- return (image)[0]["Image"]
287
-
288
  css = """
289
  #app-container {
290
  max-width: 1200px;
@@ -297,14 +291,11 @@ css = """
297
  with gr.Blocks(theme=theme, css=css) as app:
298
  gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
299
  with gr.Tab("Text to Image"):
300
- #gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
301
  #gr.HTML("<center><b>Flux</b></center>")
302
  #gr.load("models/XLabs-AI/flux-RealismLora")
303
- text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
304
- input_prompt = gr.Textbox(placeholder="Image Prompt", lines=4)
305
- image_output = gr.Image(type="pil", label="Image Output", format="png")
306
-
307
- text_button.click(query, inputs=[input_prompt], outputs=[image_output])
308
  gr.load("models/dvyio/flux-lora-film-noir")
309
 
310
  with gr.Tab("Flip Image"):
 
279
 
280
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
281
 
 
 
 
 
 
 
282
  css = """
283
  #app-container {
284
  max-width: 1200px;
 
291
  with gr.Blocks(theme=theme, css=css) as app:
292
  gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
293
  with gr.Tab("Text to Image"):
294
+
295
  #gr.HTML("<center><b>Flux</b></center>")
296
  #gr.load("models/XLabs-AI/flux-RealismLora")
297
+ #gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
298
+ gr.load("stabilityai/stable-diffusion-3-medium-diffusers")
 
 
 
299
  gr.load("models/dvyio/flux-lora-film-noir")
300
 
301
  with gr.Tab("Flip Image"):