Spaces:
Running
Running
m3 removed
Browse files
app.py
CHANGED
|
@@ -173,19 +173,18 @@ def m6(que, image):
|
|
| 173 |
|
| 174 |
|
| 175 |
def predict_answer(category, que, image):
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
# return m6(que, image)
|
| 189 |
|
| 190 |
|
| 191 |
|
|
|
|
| 173 |
|
| 174 |
|
| 175 |
def predict_answer(category, que, image):
|
| 176 |
+
if category == 0:
|
| 177 |
+
return m1(que, image)
|
| 178 |
+
elif category == 1:
|
| 179 |
+
return m2(que, image)
|
| 180 |
+
elif category == 2:
|
| 181 |
+
return m3(que, image)
|
| 182 |
+
elif category == 3:
|
| 183 |
+
return m4(que, image)
|
| 184 |
+
elif category == 4:
|
| 185 |
+
return m5(que, image)
|
| 186 |
+
else:
|
| 187 |
+
return m6(que, image)
|
|
|
|
| 188 |
|
| 189 |
|
| 190 |
|