DigiP-AI commited on
Commit
b36e779
·
verified ·
1 Parent(s): 986acf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -277,6 +277,12 @@ def image_processing(image, filter_type):
277
  output = image
278
 
279
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
 
 
 
 
 
 
280
 
281
 
282
  css = """
@@ -292,7 +298,14 @@ 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
  with gr.Row():
295
- custom_model = gr.Radio(label="Model", choices=["models/digiplay/AnalogMadness-realistic-model-v7", "models/XLabs-AI/flux-RealismLora", "models/dvyio/flux-lora-film-noir"])
 
 
 
 
 
 
 
296
  #gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
297
  gr.HTML("<center><b>Flux</b></center>")
298
  #gr.load("models/XLabs-AI/flux-RealismLora")
 
277
  output = image
278
 
279
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
280
+
281
+ def models(model, custom_model)
282
+ if custom_model == "models/dvyio/flux-lora-film-noir"
283
+ gr.load("models/XLabs-AI/flux-RealismLora")
284
+ elif custom_model == "models/XLabs-AI/flux-RealismLora"
285
+
286
 
287
 
288
  css = """
 
298
  gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
299
  with gr.Tab("Text to Image"):
300
  with gr.Row():
301
+ def models(model, custom_model)
302
+ if custom_model == "models/dvyio/flux-lora-film-noir"
303
+ gr.load("models/XLabs-AI/flux-RealismLora")
304
+ elif custom_model == "models/XLabs-AI/flux-RealismLora"
305
+
306
+
307
+ with gr.Row():
308
+ custom_model = gr.Radio(label="Model", choices=[ "models/XLabs-AI/flux-RealismLora", "models/dvyio/flux-lora-film-noir"])
309
  #gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
310
  gr.HTML("<center><b>Flux</b></center>")
311
  #gr.load("models/XLabs-AI/flux-RealismLora")