Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def update_selection(evt: gr.SelectData, width, height):
|
|
59 |
selected_lora = loras[evt.index]
|
60 |
new_placeholder = f"Type a prompt for {selected_lora['title']}"
|
61 |
lora_repo = selected_lora["repo"]
|
62 |
-
updated_text = f"### Selected: [{lora_repo}](https://
|
63 |
if "aspect" in selected_lora:
|
64 |
if selected_lora["aspect"] == "portrait":
|
65 |
width = 768
|
@@ -267,15 +267,15 @@ 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
|
271 |
elem_id="title",
|
272 |
)
|
273 |
selected_index = gr.State(None)
|
274 |
with gr.Row():
|
275 |
with gr.Column(scale=3):
|
276 |
-
prompt = gr.Textbox(label="
|
277 |
with gr.Column(scale=1, elem_id="gen_column"):
|
278 |
-
generate_button = gr.Button("
|
279 |
with gr.Row():
|
280 |
with gr.Column():
|
281 |
selected_info = gr.Markdown("")
|
@@ -289,7 +289,7 @@ with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60))
|
|
289 |
)
|
290 |
with gr.Group():
|
291 |
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="multimodalart/vintage-ads-flux")
|
292 |
-
gr.Markdown("
|
293 |
custom_lora_info = gr.HTML(visible=False)
|
294 |
custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
|
295 |
with gr.Column():
|
|
|
59 |
selected_lora = loras[evt.index]
|
60 |
new_placeholder = f"Type a prompt for {selected_lora['title']}"
|
61 |
lora_repo = selected_lora["repo"]
|
62 |
+
updated_text = f"### Selected: [{lora_repo}](https://hepzeka.com/{lora_repo}) ✨"
|
63 |
if "aspect" in selected_lora:
|
64 |
if selected_lora["aspect"] == "portrait":
|
65 |
width = 768
|
|
|
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>Hepzeka.com - FLUX LoRA Modelleri</h1>""",
|
271 |
elem_id="title",
|
272 |
)
|
273 |
selected_index = gr.State(None)
|
274 |
with gr.Row():
|
275 |
with gr.Column(scale=3):
|
276 |
+
prompt = gr.Textbox(label="İstem ( Komut )", lines=1, placeholder="Bir LoRA seçtikten sonra bir istem yazın")
|
277 |
with gr.Column(scale=1, elem_id="gen_column"):
|
278 |
+
generate_button = gr.Button("Oluştur", variant="primary", elem_id="gen_btn")
|
279 |
with gr.Row():
|
280 |
with gr.Column():
|
281 |
selected_info = gr.Markdown("")
|
|
|
289 |
)
|
290 |
with gr.Group():
|
291 |
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="multimodalart/vintage-ads-flux")
|
292 |
+
gr.Markdown("Hepzeka.com - Yapay Zeka Merkezi", elem_id="lora_list")
|
293 |
custom_lora_info = gr.HTML(visible=False)
|
294 |
custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
|
295 |
with gr.Column():
|