Spaces:
Runtime error
Runtime error
shweaung
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
26 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
27 |
|
28 |
# Translate the prompt from Russian to English if necessary
|
29 |
-
prompt = GoogleTranslator(source='
|
30 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
31 |
|
32 |
# Add some extra flair to the prompt
|
@@ -78,7 +78,7 @@ css = """
|
|
78 |
# Build the Gradio UI with Blocks
|
79 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
80 |
# Add a title to the app
|
81 |
-
gr.HTML("<center><h1>
|
82 |
|
83 |
# Container for all the UI elements
|
84 |
with gr.Column(elem_id="app-container"):
|
@@ -90,7 +90,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
90 |
|
91 |
# Accordion for advanced settings
|
92 |
with gr.Row():
|
93 |
-
with gr.Accordion("
|
94 |
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")
|
95 |
with gr.Row():
|
96 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
|
|
|
26 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
27 |
|
28 |
# Translate the prompt from Russian to English if necessary
|
29 |
+
prompt = GoogleTranslator(source='my', target='en').translate(prompt)
|
30 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
31 |
|
32 |
# Add some extra flair to the prompt
|
|
|
78 |
# Build the Gradio UI with Blocks
|
79 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
80 |
# Add a title to the app
|
81 |
+
gr.HTML("<center><h1>Walone AI Image Pro Max</h1></center>")
|
82 |
|
83 |
# Container for all the UI elements
|
84 |
with gr.Column(elem_id="app-container"):
|
|
|
90 |
|
91 |
# Accordion for advanced settings
|
92 |
with gr.Row():
|
93 |
+
with gr.Accordion("အဆင့်မြင့် Settings", open=False):
|
94 |
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")
|
95 |
with gr.Row():
|
96 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
|