Spaces:
Sleeping
Sleeping
krishnapal2308
commited on
Commit
•
090ccb6
1
Parent(s):
4701b71
Removing os.path from sample image
Browse files
app.py
CHANGED
@@ -39,21 +39,25 @@ def process_image_and_generate_output(image, model_selection):
|
|
39 |
return pred_caption, audio_content
|
40 |
|
41 |
|
42 |
-
#
|
43 |
-
#
|
44 |
-
#
|
45 |
-
#
|
46 |
-
#
|
47 |
-
sample_images
|
48 |
-
|
49 |
-
|
50 |
-
[os.path.join(os.path.dirname(__file__), "sample_images/3.jpg")],
|
51 |
-
[os.path.join(os.path.dirname(__file__), "sample_images/4.jpg")],
|
52 |
-
[os.path.join(os.path.dirname(__file__), "sample_images/5.jpg")],
|
53 |
-
[os.path.join(os.path.dirname(__file__), "sample_images/6.jpg")]
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
]
|
56 |
|
|
|
57 |
# Create a dropdown to select sample image
|
58 |
image_input = gr.Image(label="Upload Image")
|
59 |
|
|
|
39 |
return pred_caption, audio_content
|
40 |
|
41 |
|
42 |
+
# sample_images = [
|
43 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/1.jpg")],
|
44 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/2.jpg")],
|
45 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/3.jpg")],
|
46 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/4.jpg")],
|
47 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/5.jpg")],
|
48 |
+
# [os.path.join(os.path.dirname(__file__), "sample_images/6.jpg")]
|
49 |
+
# ]
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
sample_images = [
|
52 |
+
["sample_images/1.jpg"],
|
53 |
+
["sample_images/2.jpg"],
|
54 |
+
["sample_images/3.jpg"],
|
55 |
+
["sample_images/4.jpg"],
|
56 |
+
["sample_images/5.jpg"],
|
57 |
+
["sample_images/6.jpg"]
|
58 |
]
|
59 |
|
60 |
+
|
61 |
# Create a dropdown to select sample image
|
62 |
image_input = gr.Image(label="Upload Image")
|
63 |
|