Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,11 +93,11 @@ def process_audio(audio):
|
|
| 93 |
|
| 94 |
def generate_response(image, audio, text, count):
|
| 95 |
count = int(count)
|
| 96 |
-
|
| 97 |
if audio:
|
| 98 |
-
|
| 99 |
if text:
|
| 100 |
-
overall_input = text +
|
| 101 |
if image:
|
| 102 |
img_tokens = process_image(image)
|
| 103 |
overall_input = "Question: " + overall_input + "Answer:"
|
|
|
|
| 93 |
|
| 94 |
def generate_response(image, audio, text, count):
|
| 95 |
count = int(count)
|
| 96 |
+
overall_input = ""
|
| 97 |
if audio:
|
| 98 |
+
overall_input = process_audio(audio)
|
| 99 |
if text:
|
| 100 |
+
overall_input = text + overall_input
|
| 101 |
if image:
|
| 102 |
img_tokens = process_image(image)
|
| 103 |
overall_input = "Question: " + overall_input + "Answer:"
|