Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
import cv2
|
| 3 |
import numpy as np
|
| 4 |
from datetime import datetime
|
|
|
|
| 5 |
import random
|
| 6 |
|
| 7 |
#----------Start of theme----------
|
|
@@ -326,6 +327,10 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
| 326 |
with gr.Tab("Text to Image"):
|
| 327 |
|
| 328 |
# gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
| 329 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
|
| 331 |
app.launch(share=True)
|
|
|
|
| 2 |
import cv2
|
| 3 |
import numpy as np
|
| 4 |
from datetime import datetime
|
| 5 |
+
from diffusers import DiffusionPipeline
|
| 6 |
import random
|
| 7 |
|
| 8 |
#----------Start of theme----------
|
|
|
|
| 327 |
with gr.Tab("Text to Image"):
|
| 328 |
|
| 329 |
# gr.load("models/digiplay/AnalogMadness-realistic-model-v7")
|
| 330 |
+
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
|
| 331 |
+
pipe.load_lora_weights("XLabs-AI/flux-RealismLora")
|
| 332 |
+
|
| 333 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 334 |
+
image = pipe(prompt).images[0]
|
| 335 |
|
| 336 |
app.launch(share=True)
|