Update app.py
Browse files
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
|
152 |
-
<p
|
153 |
-
<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="
|
163 |
gemini_api_key = gr.Textbox(
|
164 |
lines=1,
|
165 |
-
placeholder="
|
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,
|
|
|
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,
|