Update app.py
Browse files
app.py
CHANGED
@@ -81,6 +81,10 @@ urls = [["https://media.vanityfair.com/photos/6036a15657f37ea4415256d2/master/w_
|
|
81 |
|
82 |
url = [['https://media.vanityfair.com/photos/6036a15657f37ea4415256d2/master/w_2560%2Cc_limit/1225292516']]
|
83 |
|
|
|
|
|
|
|
|
|
84 |
twitter_link = """
|
85 |
[](https://twitter.com/nickmuchi)
|
86 |
"""
|
@@ -141,9 +145,8 @@ with demo:
|
|
141 |
metric_from_upload = gr.Label(label = 'Similarity Metric')
|
142 |
|
143 |
with gr.Row():
|
144 |
-
example_images = gr.
|
145 |
-
|
146 |
-
|
147 |
up_but_fr = gr.Button('Verify')
|
148 |
|
149 |
|
@@ -183,8 +186,7 @@ with demo:
|
|
183 |
race_from_upload = gr.Label(label = 'Race')
|
184 |
|
185 |
with gr.Row():
|
186 |
-
example_images = gr.
|
187 |
-
samples=[[path.as_posix()] for path in sorted(pathlib.Path('images').rglob('*.j*g'))])
|
188 |
|
189 |
up_but_fa = gr.Button('Analyze')
|
190 |
|
|
|
81 |
|
82 |
url = [['https://media.vanityfair.com/photos/6036a15657f37ea4415256d2/master/w_2560%2Cc_limit/1225292516']]
|
83 |
|
84 |
+
all_images = [[path.as_posix()] for path in sorted(pathlib.Path('images').rglob('*.j*g'))])
|
85 |
+
nick = [[path.as_posix()] for path in sorted(pathlib.Path('images').rglob('*nick*.j*g'))])
|
86 |
+
nicks_images = [[i[0] for i in nick]]
|
87 |
+
|
88 |
twitter_link = """
|
89 |
[](https://twitter.com/nickmuchi)
|
90 |
"""
|
|
|
145 |
metric_from_upload = gr.Label(label = 'Similarity Metric')
|
146 |
|
147 |
with gr.Row():
|
148 |
+
example_images = gr.Examples(examples =nicks_images,inputs=[upload_image_1_fr,upload_image_2])
|
149 |
+
|
|
|
150 |
up_but_fr = gr.Button('Verify')
|
151 |
|
152 |
|
|
|
186 |
race_from_upload = gr.Label(label = 'Race')
|
187 |
|
188 |
with gr.Row():
|
189 |
+
example_images = gr.Examples(examples =all_images,inputs=[upload_image_1_fa])
|
|
|
190 |
|
191 |
up_but_fa = gr.Button('Analyze')
|
192 |
|