victorgg commited on
Commit
a130b52
·
verified ·
1 Parent(s): fffc34a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -148,32 +148,32 @@ with gr.Blocks() as demo:
148
  <img src="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png" style="width: 100px; height: 100px;">
149
  </div>
150
  <div>
151
- <h1>🤖🤖</h1>
152
- <p>Gemini for Image Editing</p>
153
- <p>create API Key <a href="https://aistudio.google.com/apikey">here</a></p>
154
  </div>
155
  </div>
156
  """
157
  )
158
- gr.Markdown("Upload an image and enter a prompt to edit the image.")
159
 
160
  with gr.Row():
161
  with gr.Column():
162
- image_input = gr.Image(type="pil", label="Upload Image", image_mode="RGBA")
163
  gemini_api_key = gr.Textbox(
164
  lines=1,
165
- placeholder="Enter Gemini API Key",
166
  label="Gemini API Key",
167
  type="password"
168
  )
169
  prompt_input = gr.Textbox(
170
  lines=2,
171
- placeholder="Enter prompt here...",
172
- label="Prompt"
173
  )
174
- submit_btn = gr.Button("Generate")
175
  with gr.Column():
176
- output_gallery = gr.Gallery(label="Generated Outputs")
177
 
178
  submit_btn.click(
179
  fn=process_image_and_prompt,
 
148
  <img src="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png" style="width: 100px; height: 100px;">
149
  </div>
150
  <div>
151
+ <h1></h1>
152
+ <p>ပုံရိပ်တည်းဖြတ်ရန် Gemini</p>
153
+ <p>API Key ကို <a href="https://aistudio.google.com/apikey">ဤနေရာ</a> တွင် ဖန်တီးပါ</p>
154
  </div>
155
  </div>
156
  """
157
  )
158
+ gr.Markdown("ပုံတစ်ပုံ တင်ပြီး ပုံကိုတည်းဖြတ်ရန် သင်လိုချင်တာကို ရိုက်ထည့်ပါ။")
159
 
160
  with gr.Row():
161
  with gr.Column():
162
+ image_input = gr.Image(type="pil", label="ပုံတင်ရန်", image_mode="RGBA")
163
  gemini_api_key = gr.Textbox(
164
  lines=1,
165
+ placeholder="Gemini API Key ထည့်ပါ",
166
  label="Gemini API Key",
167
  type="password"
168
  )
169
  prompt_input = gr.Textbox(
170
  lines=2,
171
+ placeholder="သင်လိုချင်တာကို ဤနေရာတွင် ရိုက်ထည့်ပါ...",
172
+ label="သင်လိုချင်တာ"
173
  )
174
+ submit_btn = gr.Button("ထုတ်လုပ်ပါ")
175
  with gr.Column():
176
+ output_gallery = gr.Gallery(label="ထုတ်လုပ်ပြီးရလဒ်များ")
177
 
178
  submit_btn.click(
179
  fn=process_image_and_prompt,