marahmerah commited on
Commit
a6a73c1
·
verified ·
1 Parent(s): fbf45e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -31
app.py CHANGED
@@ -117,18 +117,7 @@ def process_image_and_prompt(composite_pil, prompt, gemini_api_key):
117
  with gr.Blocks(css_paths="style.css") as demo:
118
  gr.HTML(
119
  """
120
- <div class="header-container">
121
- <div>
122
- <img src="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png" alt="Gemini logo">
123
- </div>
124
- <div>
125
- <h1>Gemini for Image Editing</h1>
126
- <p>Powered by <a href="https://gradio.app/">Gradio</a>⚡️|
127
- <a href="https://huggingface.co/spaces/ameerazam08/Gemini-Image-Edit?duplicate=true">Duplicate</a> this Repo |
128
- <a href="https://aistudio.google.com/apikey">Get an API Key</a> |
129
- Follow me on Twitter: <a href="https://x.com/Ameerazam18">Ameerazam18</a></p>
130
- </div>
131
- </div>
132
  """
133
  )
134
 
@@ -192,24 +181,5 @@ with gr.Blocks(css_paths="style.css") as demo:
192
  inputs=[image_input, prompt_input, gemini_api_key],
193
  outputs=[output_gallery, output_text],
194
  )
195
-
196
- gr.Markdown("## Try these examples", elem_classes="gr-examples-header")
197
-
198
- examples = [
199
- ["data/1.webp", 'change text to "AMEER"', ""],
200
- ["data/2.webp", "remove the spoon from hand only", ""],
201
- ["data/3.webp", 'change text to "Make it "', ""],
202
- ["data/1.jpg", "add joker style only on face", ""],
203
- ["data/1777043.jpg", "add joker style only on face", ""],
204
- ["data/2807615.jpg", "add lipstick on lip only", ""],
205
- ["data/76860.jpg", "add lipstick on lip only", ""],
206
- ["data/2807615.jpg", "make it happy looking face only", ""],
207
- ]
208
-
209
- gr.Examples(
210
- examples=examples,
211
- inputs=[image_input, prompt_input],
212
- elem_id="examples-grid"
213
- )
214
 
215
  demo.queue(max_size=50).launch()
 
117
  with gr.Blocks(css_paths="style.css") as demo:
118
  gr.HTML(
119
  """
120
+
 
 
 
 
 
 
 
 
 
 
 
121
  """
122
  )
123
 
 
181
  inputs=[image_input, prompt_input, gemini_api_key],
182
  outputs=[output_gallery, output_text],
183
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
  demo.queue(max_size=50).launch()