ixxan commited on
Commit
15c7e76
1 Parent(s): 043b7ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -111
app.py CHANGED
@@ -54,118 +54,14 @@ def vqa_main(image, question):
54
 
55
  # Home page text
56
  title = "Interactive demo: Multilingual VQA"
57
- description = "Demo for Multilingual VQA. Upload an image, type a question, click 'submit', or click one of the examples to load them."
58
- article = """
59
- Note: You may see Error displayed for output due to Gradio's incompatibility, if that is the case, please click "Logs" above to check the output for your request.
 
60
 
61
- Supported Languages:
62
- 'af': 'afrikaans',
63
- 'sq': 'albanian',
64
- 'am': 'amharic',
65
- 'ar': 'arabic',
66
- 'hy': 'armenian',
67
- 'az': 'azerbaijani',
68
- 'eu': 'basque',
69
- 'be': 'belarusian',
70
- 'bn': 'bengali',
71
- 'bs': 'bosnian',
72
- 'bg': 'bulgarian',
73
- 'ca': 'catalan',
74
- 'ceb': 'cebuano',
75
- 'ny': 'chichewa',
76
- 'zh-cn': 'chinese (simplified)',
77
- 'zh-tw': 'chinese (traditional)',
78
- 'co': 'corsican',
79
- 'hr': 'croatian',
80
- 'cs': 'czech',
81
- 'da': 'danish',
82
- 'nl': 'dutch',
83
- 'en': 'english',
84
- 'eo': 'esperanto',
85
- 'et': 'estonian',
86
- 'tl': 'filipino',
87
- 'fi': 'finnish',
88
- 'fr': 'french',
89
- 'fy': 'frisian',
90
- 'gl': 'galician',
91
- 'ka': 'georgian',
92
- 'de': 'german',
93
- 'el': 'greek',
94
- 'gu': 'gujarati',
95
- 'ht': 'haitian creole',
96
- 'ha': 'hausa',
97
- 'haw': 'hawaiian',
98
- 'iw': 'hebrew',
99
- 'he': 'hebrew',
100
- 'hi': 'hindi',
101
- 'hmn': 'hmong',
102
- 'hu': 'hungarian',
103
- 'is': 'icelandic',
104
- 'ig': 'igbo',
105
- 'id': 'indonesian',
106
- 'ga': 'irish',
107
- 'it': 'italian',
108
- 'ja': 'japanese',
109
- 'jw': 'javanese',
110
- 'kn': 'kannada',
111
- 'kk': 'kazakh',
112
- 'km': 'khmer',
113
- 'ko': 'korean',
114
- 'ku': 'kurdish (kurmanji)',
115
- 'ky': 'kyrgyz',
116
- 'lo': 'lao',
117
- 'la': 'latin',
118
- 'lv': 'latvian',
119
- 'lt': 'lithuanian',
120
- 'lb': 'luxembourgish',
121
- 'mk': 'macedonian',
122
- 'mg': 'malagasy',
123
- 'ms': 'malay',
124
- 'ml': 'malayalam',
125
- 'mt': 'maltese',
126
- 'mi': 'maori',
127
- 'mr': 'marathi',
128
- 'mn': 'mongolian',
129
- 'my': 'myanmar (burmese)',
130
- 'ne': 'nepali',
131
- 'no': 'norwegian',
132
- 'or': 'odia',
133
- 'ps': 'pashto',
134
- 'fa': 'persian',
135
- 'pl': 'polish',
136
- 'pt': 'portuguese',
137
- 'pa': 'punjabi',
138
- 'ro': 'romanian',
139
- 'ru': 'russian',
140
- 'sm': 'samoan',
141
- 'gd': 'scots gaelic',
142
- 'sr': 'serbian',
143
- 'st': 'sesotho',
144
- 'sn': 'shona',
145
- 'sd': 'sindhi',
146
- 'si': 'sinhala',
147
- 'sk': 'slovak',
148
- 'sl': 'slovenian',
149
- 'so': 'somali',
150
- 'es': 'spanish',
151
- 'su': 'sundanese',
152
- 'sw': 'swahili',
153
- 'sv': 'swedish',
154
- 'tg': 'tajik',
155
- 'ta': 'tamil',
156
- 'te': 'telugu',
157
- 'th': 'thai',
158
- 'tr': 'turkish',
159
- 'uk': 'ukrainian',
160
- 'ur': 'urdu',
161
- 'ug': 'uyghur',
162
- 'uz': 'uzbek',
163
- 'vi': 'vietnamese',
164
- 'cy': 'welsh',
165
- 'xh': 'xhosa',
166
- 'yi': 'yiddish',
167
- 'yo': 'yoruba',
168
- 'zu': 'zulu',
169
  """
170
 
171
  # Load example images
 
54
 
55
  # Home page text
56
  title = "Interactive demo: Multilingual VQA"
57
+ description = """
58
+ Upload an image, type a question, click 'submit', or click one of the examples to load them.
59
+
60
+ Note: You may see "Error" displayed for output due to Gradio's incompatibility, if that is the case, please click "Logs" above to obtain the output for your request.
61
 
62
+ """
63
+ article = """
64
+ Supported 107 Languages: 'afrikaans', 'albanian', 'amharic', 'arabic', 'armenian', 'azerbaijani', 'basque', 'belarusian', 'bengali', 'bosnian', 'bulgarian', 'catalan', 'cebuano', 'chichewa', 'chinese (simplified)', 'chinese (traditional)', 'corsican', 'croatian', 'czech', 'danish', 'dutch', 'english', 'esperanto', 'estonian', 'filipino', 'finnish', 'french', 'frisian', 'galician', 'georgian', 'german', 'greek', 'gujarati', 'haitian creole', 'hausa', 'hawaiian', 'hebrew', 'hebrew', 'hindi', 'hmong', 'hungarian', 'icelandic', 'igbo', 'indonesian', 'irish', 'italian', 'japanese', 'javanese', 'kannada', 'kazakh', 'khmer', 'korean', 'kurdish (kurmanji)', 'kyrgyz', 'lao', 'latin', 'latvian', 'lithuanian', 'luxembourgish', 'macedonian', 'malagasy', 'malay', 'malayalam', 'maltese', 'maori', 'marathi', 'mongolian', 'myanmar (burmese)', 'nepali', 'norwegian', 'odia', 'pashto', 'persian', 'polish', 'portuguese', 'punjabi', 'romanian', 'russian', 'samoan', 'scots gaelic', 'serbian', 'sesotho', 'shona', 'sindhi', 'sinhala', 'slovak', 'slovenian', 'somali', 'spanish', 'sundanese', 'swahili', 'swedish', 'tajik', 'tamil', 'telugu', 'thai', 'turkish', 'ukrainian', 'urdu', 'uyghur', 'uzbek', 'vietnamese', 'welsh', 'xhosa', 'yiddish', 'yoruba', 'zulu'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  """
66
 
67
  # Load example images