fix formatting, upgrade gradio version
Browse files- app.py +4 -5
- requirements.txt +1 -1
app.py
CHANGED
@@ -266,7 +266,6 @@ examples = [
|
|
266 |
# ["SohoJoeEth.jpeg", "Snoop Dogg.jpg", "SohoJoeEth + Snoop Dogg.jpeg"],
|
267 |
["pup1.jpg", "", "Pup no teacup.jpg"],
|
268 |
]
|
269 |
-
tile_size = 110
|
270 |
# image_folder = os.path.join("file", "images")
|
271 |
image_folder ="images"
|
272 |
|
@@ -335,7 +334,7 @@ tabbed_examples = {
|
|
335 |
# },
|
336 |
}
|
337 |
|
338 |
-
|
339 |
image_examples_tile_size = 50
|
340 |
|
341 |
with gr.Blocks() as demo:
|
@@ -352,11 +351,11 @@ Try uploading a few images and/or add some text prompts and search the embedding
|
|
352 |
with gr.Column(scale=2, min_width=(tile_size+20)*3):
|
353 |
with gr.Row():
|
354 |
with gr.Column(scale=1, min_width=tile_size):
|
355 |
-
gr.Markdown("
|
356 |
with gr.Column(scale=1, min_width=tile_size):
|
357 |
-
gr.Markdown("
|
358 |
with gr.Column(scale=1, min_width=tile_size):
|
359 |
-
gr.Markdown("
|
360 |
for example in examples:
|
361 |
with gr.Row():
|
362 |
for example in example:
|
|
|
266 |
# ["SohoJoeEth.jpeg", "Snoop Dogg.jpg", "SohoJoeEth + Snoop Dogg.jpeg"],
|
267 |
["pup1.jpg", "", "Pup no teacup.jpg"],
|
268 |
]
|
|
|
269 |
# image_folder = os.path.join("file", "images")
|
270 |
image_folder ="images"
|
271 |
|
|
|
334 |
# },
|
335 |
}
|
336 |
|
337 |
+
tile_size = 110
|
338 |
image_examples_tile_size = 50
|
339 |
|
340 |
with gr.Blocks() as demo:
|
|
|
351 |
with gr.Column(scale=2, min_width=(tile_size+20)*3):
|
352 |
with gr.Row():
|
353 |
with gr.Column(scale=1, min_width=tile_size):
|
354 |
+
gr.Markdown("#### Pup in cup:")
|
355 |
with gr.Column(scale=1, min_width=tile_size):
|
356 |
+
gr.Markdown("#### - 'Teacup'")
|
357 |
with gr.Column(scale=1, min_width=tile_size):
|
358 |
+
gr.Markdown("#### = Pup")
|
359 |
for example in examples:
|
360 |
with gr.Row():
|
361 |
for example in example:
|
requirements.txt
CHANGED
@@ -5,6 +5,6 @@ numpy
|
|
5 |
transformers
|
6 |
# diffusers
|
7 |
# ftfy
|
8 |
-
gradio == 3.
|
9 |
accelerate
|
10 |
clip-retrieval == 2.36.1
|
|
|
5 |
transformers
|
6 |
# diffusers
|
7 |
# ftfy
|
8 |
+
gradio == 3.18.0
|
9 |
accelerate
|
10 |
clip-retrieval == 2.36.1
|