Spaces:
Running
Running
copperwiring
commited on
Commit
·
1cf3975
1
Parent(s):
963e006
rename app
Browse files
app.py
CHANGED
@@ -109,17 +109,18 @@ gradio_app = gr.Interface(
|
|
109 |
inputs=[
|
110 |
gr.Image(label="Upload an image", sources=['upload', 'webcam'], type="pil"),
|
111 |
gr.Textbox(label="The image portrays culturally-relevant information in:", placeholder="what culture does this image represent?"),
|
|
|
112 |
gr.Textbox(label="City where the image was taken:", placeholder="Enter city name"),
|
113 |
gr.Textbox(label="Country where the image was taken:", placeholder="Enter country name"),
|
114 |
gr.Radio(
|
115 |
choices=[
|
116 |
-
"Yes. Unique to South
|
117 |
-
"Yes, people will likely think of South
|
118 |
-
"Maybe, this culture did not originate from South
|
119 |
-
"Not really. It has some affiliation to South
|
120 |
-
"No. Totally unrelated to South
|
121 |
],
|
122 |
-
label="Is the image culturally relevant in South
|
123 |
),
|
124 |
gr.Radio(
|
125 |
choices=[
|
@@ -137,12 +138,12 @@ gradio_app = gr.Interface(
|
|
137 |
gr.Text(label="Text Response"),
|
138 |
gr.Text(label="Multiple Choice Response"),
|
139 |
gr.Text(label="Location Information"),
|
140 |
-
gr.Text(label="South
|
141 |
gr.Text(label="Cultural Knowledge Source"),
|
142 |
gr.Text(label="Native Language Caption"),
|
143 |
gr.Text(label="English Caption")
|
144 |
],
|
145 |
-
title="
|
146 |
description="Upload an image and answer questions about its cultural significance."
|
147 |
)
|
148 |
|
|
|
109 |
inputs=[
|
110 |
gr.Image(label="Upload an image", sources=['upload', 'webcam'], type="pil"),
|
111 |
gr.Textbox(label="The image portrays culturally-relevant information in:", placeholder="what culture does this image represent?"),
|
112 |
+
|
113 |
gr.Textbox(label="City where the image was taken:", placeholder="Enter city name"),
|
114 |
gr.Textbox(label="Country where the image was taken:", placeholder="Enter country name"),
|
115 |
gr.Radio(
|
116 |
choices=[
|
117 |
+
"Yes. Unique to South Asia",
|
118 |
+
"Yes, people will likely think of South Asia when seeing the picture, but it may have low degree of similarity to other cultures.",
|
119 |
+
"Maybe, this culture did not originate from South Asia, but it's quite dominant in South Asia",
|
120 |
+
"Not really. It has some affiliation to South Asia, but actually does not represent South Asia or has stronger affiliation to cultures outside South Asia",
|
121 |
+
"No. Totally unrelated to South Asia"
|
122 |
],
|
123 |
+
label="Is the image culturally relevant in South Asia?"
|
124 |
),
|
125 |
gr.Radio(
|
126 |
choices=[
|
|
|
138 |
gr.Text(label="Text Response"),
|
139 |
gr.Text(label="Multiple Choice Response"),
|
140 |
gr.Text(label="Location Information"),
|
141 |
+
gr.Text(label="South Asia Cultural Relevance"),
|
142 |
gr.Text(label="Cultural Knowledge Source"),
|
143 |
gr.Text(label="Native Language Caption"),
|
144 |
gr.Text(label="English Caption")
|
145 |
],
|
146 |
+
title="South Asian Image Data Collection",
|
147 |
description="Upload an image and answer questions about its cultural significance."
|
148 |
)
|
149 |
|