Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
# Installing the latest version of the transformers library
|
2 |
-
# import os
|
3 |
-
# os.system("pip install ./transformers-4.47.0.dev0-py3-none-any.whl")
|
4 |
-
|
5 |
# Importing the requirements
|
6 |
import warnings
|
7 |
warnings.filterwarnings("ignore")
|
@@ -27,21 +23,9 @@ answer = gr.Textbox(label="Generated Caption", show_label=True, show_copy_button
|
|
27 |
|
28 |
# Examples for the interface
|
29 |
examples = [
|
30 |
-
[
|
31 |
-
|
32 |
-
|
33 |
-
False
|
34 |
-
],
|
35 |
-
[
|
36 |
-
"images/dog.jpg",
|
37 |
-
80,
|
38 |
-
True
|
39 |
-
],
|
40 |
-
[
|
41 |
-
"images/bird.jpg",
|
42 |
-
160,
|
43 |
-
False
|
44 |
-
],
|
45 |
]
|
46 |
|
47 |
# Title, description, and article for the interface
|
|
|
|
|
|
|
|
|
|
|
1 |
# Importing the requirements
|
2 |
import warnings
|
3 |
warnings.filterwarnings("ignore")
|
|
|
23 |
|
24 |
# Examples for the interface
|
25 |
examples = [
|
26 |
+
["images/cat.jpg", 100, False],
|
27 |
+
["images/dog.jpg", 80, True],
|
28 |
+
["images/bird.jpg", 160, False],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
]
|
30 |
|
31 |
# Title, description, and article for the interface
|