Spaces:
Running
Running
Commit
•
7f500be
1
Parent(s):
bac793f
category was 0
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ def combine(audio, input_image, text_question=""):
|
|
253 |
|
254 |
image = Image.fromarray(input_image).convert('RGB')
|
255 |
category = predict_category(que, image)
|
256 |
-
answer = predict_answer(
|
257 |
|
258 |
tts = gTTS(answer)
|
259 |
tts.save('answer.mp3')
|
|
|
253 |
|
254 |
image = Image.fromarray(input_image).convert('RGB')
|
255 |
category = predict_category(que, image)
|
256 |
+
answer = predict_answer(category, que, image)
|
257 |
|
258 |
tts = gTTS(answer)
|
259 |
tts.save('answer.mp3')
|