venkat-natchi commited on
Commit
e27df4d
·
verified ·
1 Parent(s): af6afed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- text_from_audio = process_audio(audio)
99
  if text:
100
- overall_input = text + text_from_audio
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:"