Spaces:
Running
on
Zero
Running
on
Zero
shweaung
commited on
Commit
•
aa43698
1
Parent(s):
1cf86ee
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps
|
|
118 |
@spaces.GPU(duration=70)
|
119 |
def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
|
120 |
if selected_index is None:
|
121 |
-
raise gr.Error("
|
122 |
selected_lora = loras[selected_index]
|
123 |
lora_path = selected_lora["repo"]
|
124 |
trigger_word = selected_lora["trigger_word"]
|
@@ -267,7 +267,7 @@ css = '''
|
|
267 |
font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
|
268 |
with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60)) as app:
|
269 |
title = gr.HTML(
|
270 |
-
"""<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA">
|
271 |
elem_id="title",
|
272 |
)
|
273 |
selected_index = gr.State(None)
|
@@ -297,7 +297,7 @@ with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60))
|
|
297 |
result = gr.Image(label="Generated Image")
|
298 |
|
299 |
with gr.Row():
|
300 |
-
with gr.Accordion("Advanced Settings", open=False):
|
301 |
with gr.Row():
|
302 |
input_image = gr.Image(label="Input image", type="filepath")
|
303 |
image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|
|
|
118 |
@spaces.GPU(duration=70)
|
119 |
def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
|
120 |
if selected_index is None:
|
121 |
+
raise gr.Error("မထုတ်ခင်မှာ LORa Style တစ်ခုခုကို ရွေးချယ်ပါ")
|
122 |
selected_lora = loras[selected_index]
|
123 |
lora_path = selected_lora["repo"]
|
124 |
trigger_word = selected_lora["trigger_word"]
|
|
|
267 |
font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
|
268 |
with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60)) as app:
|
269 |
title = gr.HTML(
|
270 |
+
"""<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA">Walone AI Image Studio</h1>""",
|
271 |
elem_id="title",
|
272 |
)
|
273 |
selected_index = gr.State(None)
|
|
|
297 |
result = gr.Image(label="Generated Image")
|
298 |
|
299 |
with gr.Row():
|
300 |
+
with gr.Accordion("Advanced အဆင့်မြင့် Settings", open=False):
|
301 |
with gr.Row():
|
302 |
input_image = gr.Image(label="Input image", type="filepath")
|
303 |
image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|