Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
shweaung
commited on
Commit
•
a3c4559
1
Parent(s):
9ab70d4
Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,11 @@ timeout = 100
|
|
15 |
|
16 |
article_text = """
|
17 |
<div style="text-align: center;">
|
18 |
-
<p
|
19 |
-
|
20 |
<div style="display: flex; justify-content: center;">
|
21 |
-
<a href="https://
|
22 |
-
<img src="https://
|
23 |
alt="Buy Me a Coffee"
|
24 |
style="height: 40px; width: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 10px;">
|
25 |
</a>
|
@@ -41,7 +41,7 @@ def query(lora_id, prompt, steps=28, cfg_scale=3.5, randomize_seed=True, seed=-1
|
|
41 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
42 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
43 |
|
44 |
-
# prompt = GoogleTranslator(source='
|
45 |
# print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
46 |
|
47 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
@@ -95,14 +95,14 @@ css = """
|
|
95 |
"""
|
96 |
|
97 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
98 |
-
gr.HTML("<center><h1>
|
99 |
with gr.Column(elem_id="app-container"):
|
100 |
with gr.Row():
|
101 |
with gr.Column(elem_id="prompt-container"):
|
102 |
with gr.Row():
|
103 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
104 |
with gr.Row():
|
105 |
-
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA
|
106 |
with gr.Row():
|
107 |
with gr.Accordion("Advanced Settings", open=False):
|
108 |
with gr.Row():
|
|
|
15 |
|
16 |
article_text = """
|
17 |
<div style="text-align: center;">
|
18 |
+
<p>ဒီ Tool မှာ Train ထားသည့် LoRA Model များကို ထည့်သွင်းပြီးထုတ်နိုင်ပါတယ်</p>
|
19 |
+
|
20 |
<div style="display: flex; justify-content: center;">
|
21 |
+
<a href="https://writtech.com/waloneai/walone-lora-library/">
|
22 |
+
<img src="https://writtech.com/waloneai/premium/lora.png"
|
23 |
alt="Buy Me a Coffee"
|
24 |
style="height: 40px; width: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 10px;">
|
25 |
</a>
|
|
|
41 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
42 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
43 |
|
44 |
+
# prompt = GoogleTranslator(source='my', target='en').translate(prompt)
|
45 |
# print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
46 |
|
47 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
|
|
95 |
"""
|
96 |
|
97 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
98 |
+
gr.HTML("<center><h1>Walone AI Image LoRA</h1></center>")
|
99 |
with gr.Column(elem_id="app-container"):
|
100 |
with gr.Row():
|
101 |
with gr.Column(elem_id="prompt-container"):
|
102 |
with gr.Row():
|
103 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
104 |
with gr.Row():
|
105 |
+
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA path (optional)", placeholder="shweaung/vintage-ads-flux")
|
106 |
with gr.Row():
|
107 |
with gr.Accordion("Advanced Settings", open=False):
|
108 |
with gr.Row():
|