Spaces:
Running
on
Zero
Running
on
Zero
Update inference_webui.py
Browse files- inference_webui.py +4 -4
inference_webui.py
CHANGED
@@ -15,11 +15,11 @@ if not os.path.exists(SAVE_DIR):
|
|
15 |
os.makedirs(SAVE_DIR, exist_ok=True)
|
16 |
|
17 |
# Load the default image
|
18 |
-
DEFAULT_IMAGE_PATH = "cover1.
|
19 |
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
22 |
-
adapter_id = "
|
23 |
|
24 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
25 |
pipeline.load_lora_weights(adapter_id)
|
@@ -94,7 +94,7 @@ def inference(
|
|
94 |
|
95 |
|
96 |
examples = [
|
97 |
-
"
|
98 |
]
|
99 |
|
100 |
css = """
|
@@ -104,7 +104,7 @@ footer {
|
|
104 |
"""
|
105 |
|
106 |
with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
|
107 |
-
gr.HTML('<div class="title">
|
108 |
|
109 |
|
110 |
with gr.Tabs() as tabs:
|
|
|
15 |
os.makedirs(SAVE_DIR, exist_ok=True)
|
16 |
|
17 |
# Load the default image
|
18 |
+
DEFAULT_IMAGE_PATH = "cover1.jpg"
|
19 |
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
22 |
+
adapter_id = "openfree/myt-flux-fantasy"
|
23 |
|
24 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
25 |
pipeline.load_lora_weights(adapter_id)
|
|
|
94 |
|
95 |
|
96 |
examples = [
|
97 |
+
"fantasy style, a woman with long blonde hair wearing big round hippie sunglasses with a slight smile, white oversized fur coat, black dress, early evening in the city, polaroid style [trigger]"
|
98 |
]
|
99 |
|
100 |
css = """
|
|
|
104 |
"""
|
105 |
|
106 |
with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
|
107 |
+
gr.HTML('<div class="title"> Fantasy style Image Generation by FLUX</div>')
|
108 |
|
109 |
|
110 |
with gr.Tabs() as tabs:
|