shweaung commited on
Commit
d7729a9
·
verified ·
1 Parent(s): 5e1077d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,7 +26,7 @@ def query(prompt, is_negative=False, steps=35, 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='ru', target='en').translate(prompt)
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>Stable Diffusion 3.5 Large</h1></center>")
82
 
83
  # Container for all the UI elements
84
  with gr.Column(elem_id="app-container"):
@@ -86,7 +86,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
86
  with gr.Row():
87
  with gr.Column(elem_id="prompt-container"):
88
  with gr.Row():
89
- text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
90
 
91
  # Accordion for advanced settings
92
  with gr.Row():
 
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 Large</h1></center>")
82
 
83
  # Container for all the UI elements
84
  with gr.Column(elem_id="app-container"):
 
86
  with gr.Row():
87
  with gr.Column(elem_id="prompt-container"):
88
  with gr.Row():
89
+ text_prompt = gr.Textbox(label="Prompt", placeholder="Prompt စာသားရေးပါ", lines=2, elem_id="prompt-text-input")
90
 
91
  # Accordion for advanced settings
92
  with gr.Row():