Update app.py
Browse files
app.py
CHANGED
@@ -330,8 +330,12 @@ def main():
|
|
330 |
outputs=[sorted_general_strings, rating, character_res, general_res],
|
331 |
)
|
332 |
|
|
|
|
|
|
|
|
|
333 |
gr.Examples(
|
334 |
-
[["power.jpg", SWINV2_MODEL_DSV3_REPO, 0.35, False, 0.85, False]],
|
335 |
inputs=[
|
336 |
image,
|
337 |
model_repo,
|
@@ -343,7 +347,7 @@ def main():
|
|
343 |
)
|
344 |
|
345 |
demo.queue(max_size=10)
|
346 |
-
demo.launch()
|
347 |
|
348 |
|
349 |
if __name__ == "__main__":
|
|
|
330 |
outputs=[sorted_general_strings, rating, character_res, general_res],
|
331 |
)
|
332 |
|
333 |
+
import pathlib
|
334 |
+
im_list = list(map(str ,pathlib.Path(".").rglob("*.png")))
|
335 |
+
add_exps = list(map(lambda x: [x, SWINV2_MODEL_DSV3_REPO, 0.35, False, 0.85, False], im_list))
|
336 |
+
|
337 |
gr.Examples(
|
338 |
+
add_exps + [["power.jpg", SWINV2_MODEL_DSV3_REPO, 0.35, False, 0.85, False]],
|
339 |
inputs=[
|
340 |
image,
|
341 |
model_repo,
|
|
|
347 |
)
|
348 |
|
349 |
demo.queue(max_size=10)
|
350 |
+
demo.launch(share = True)
|
351 |
|
352 |
|
353 |
if __name__ == "__main__":
|