Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmzjms committed Apr 11, 2023
1 parent f5c6c4c commit 4d14f89
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions audio-chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,15 +1072,6 @@ def speech(self, speech_input, state):
state = state + [(text, response)]
print("Outputs:", state)
return gr.Audio.update(value=None), gr.Audio.update(value=output_audio_filename,visible=True), state, gr.Video.update(visible=False)
# elif tool == "Audio Inpainting":
# audio_filename = res['intermediate_steps'][0][0].tool_input
# image_filename = res['intermediate_steps'][0][1]
# print("======>Current memory:\n %s" % self.agent.memory)
# response = res['output']
# output_audio_filename = merge_audio(self.tts.inference(res['output']), audio_filename)
# state = state + [(text, response)]
# print("Outputs:", state)
# return gr.Audio.update(value=None), gr.Audio.update(value=output_audio_filename,visible=True), state, gr.Video.update(visible=False), gr.Image.update(value=image_filename,visible=True), gr.Button.update(visible=True)
elif tool == "Generate a talking human portrait video given a input Audio":
video_filename = res['intermediate_steps'][0][1]
print("======>Current memory:\n %s" % self.agent.memory)
Expand Down Expand Up @@ -1191,4 +1182,4 @@ def clear_button(self):
clear_speech.click(lambda: [], None, state)
clear_speech.click(bot.clear_video, None, outvideo)

demo.launch(server_name="0.0.0.0", server_port=7862, share=True)
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)

0 comments on commit 4d14f89

Please sign in to comment.