Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -278,14 +278,7 @@ def image_processing(image, filter_type):
|
|
278 |
|
279 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
280 |
|
281 |
-
|
282 |
-
#Custom Models
|
283 |
-
if custom_model == "models/dvyio/flux-lora-film-noir":
|
284 |
-
gr.load("models/dvyio/flux-lora-film-noir")
|
285 |
-
elif custom_model == "models/XLabs-AI/flux-RealismLora":
|
286 |
-
gr.load("models/XLabs-AI/flux-RealismLora")
|
287 |
-
|
288 |
-
|
289 |
|
290 |
css = """
|
291 |
#app-container {
|
@@ -299,12 +292,10 @@ css = """
|
|
299 |
with gr.Blocks(theme=theme, css=css) as app:
|
300 |
gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
|
301 |
with gr.Tab("Text to Image"):
|
302 |
-
with gr.Row():
|
303 |
-
custom_model = gr.Radio(label="Model", choices=[ "flux-RealismLora", "flux-lora-film-noir"])
|
304 |
#gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
305 |
gr.HTML("<center><b>Flux</b></center>")
|
306 |
#gr.load("models/XLabs-AI/flux-RealismLora")
|
307 |
-
|
308 |
|
309 |
gr.load(custom_model)
|
310 |
|
|
|
278 |
|
279 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
280 |
|
281 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
|
283 |
css = """
|
284 |
#app-container {
|
|
|
292 |
with gr.Blocks(theme=theme, css=css) as app:
|
293 |
gr.HTML("<center><h6>🎨 Image Studio</h6></center>")
|
294 |
with gr.Tab("Text to Image"):
|
|
|
|
|
295 |
#gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
296 |
gr.HTML("<center><b>Flux</b></center>")
|
297 |
#gr.load("models/XLabs-AI/flux-RealismLora")
|
298 |
+
gr.load("models/dvyio/flux-lora-film-noir")
|
299 |
|
300 |
gr.load(custom_model)
|
301 |
|