shweaung
commited on
Commit
•
923e7ae
1
Parent(s):
b5c8ba4
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
24 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
25 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
26 |
|
27 |
-
prompt = GoogleTranslator(source='
|
28 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
29 |
|
30 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
@@ -65,14 +65,14 @@ css = """
|
|
65 |
"""
|
66 |
|
67 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
68 |
-
gr.HTML("<center><h1>
|
69 |
with gr.Column(elem_id="app-container"):
|
70 |
with gr.Row():
|
71 |
with gr.Column(elem_id="prompt-container"):
|
72 |
with gr.Row():
|
73 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="
|
74 |
with gr.Row():
|
75 |
-
with gr.Accordion("
|
76 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
77 |
steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
|
78 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
|
|
24 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
25 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
26 |
|
27 |
+
prompt = GoogleTranslator(source='my', target='en').translate(prompt)
|
28 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
29 |
|
30 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
|
|
65 |
"""
|
66 |
|
67 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
68 |
+
gr.HTML("<center><h1>Walone AI Image Stable</h1></center>")
|
69 |
with gr.Column(elem_id="app-container"):
|
70 |
with gr.Row():
|
71 |
with gr.Column(elem_id="prompt-container"):
|
72 |
with gr.Row():
|
73 |
+
text_prompt = gr.Textbox(label="Prompt ရေးရန်", placeholder="ဒီနေရာမှာ prompt ရေးပါ", lines=2, elem_id="prompt-text-input")
|
74 |
with gr.Row():
|
75 |
+
with gr.Accordion("အဆင့်မြင့် Settings", open=False):
|
76 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
77 |
steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
|
78 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|