lmzjms commited on
Commit
e3686f7
·
1 Parent(s): 079bd31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ class ConversationBot:
84
  print(f"\nProcessed run_text, Input text: {text}\nCurrent state: {state}\n"
85
  f"Current Memory: {self.agent.memory.buffer}")
86
  return state, state, gr.Audio.update(visible=False), gr.Image.update(visible=False), gr.Button.update(visible=False)
87
- elif tool == "Generate Text From The Audio" or tool == "Transcribe speech":
88
  print("======>Current memory:\n %s" % self.agent.memory)
89
  response = re.sub('(image/\S*png)', lambda m: f'![](/file={m.group(0)})*{m.group(0)}*', res['output'])
90
  image_filename = res['intermediate_steps'][0][1]
 
84
  print(f"\nProcessed run_text, Input text: {text}\nCurrent state: {state}\n"
85
  f"Current Memory: {self.agent.memory.buffer}")
86
  return state, state, gr.Audio.update(visible=False), gr.Image.update(visible=False), gr.Button.update(visible=False)
87
+ elif tool == "Generate Text From The Audio" or tool == "Transcribe speech" or tool == "Target Sound Detection" or tool == "Detect The Sound Event From The Audio":
88
  print("======>Current memory:\n %s" % self.agent.memory)
89
  response = re.sub('(image/\S*png)', lambda m: f'![](/file={m.group(0)})*{m.group(0)}*', res['output'])
90
  image_filename = res['intermediate_steps'][0][1]