Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -156,8 +156,8 @@ class ConversationBot:
|
|
156 |
print("===============Running inpainting =============")
|
157 |
print("Inputs:", state)
|
158 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
159 |
-
inpaint = Inpaint(device="cpu")
|
160 |
-
new_image_filename, new_audio_filename = inpaint.predict(audio_filename, image_filename)
|
161 |
AI_prompt = "Here are the predict audio and the mel spectrum." + f"*{new_audio_filename}*" + f"*{new_image_filename}*"
|
162 |
self.agent.memory.buffer = self.agent.memory.buffer + 'AI: ' + AI_prompt
|
163 |
print("======>Current memory:\n %s" % self.agent.memory)
|
@@ -190,7 +190,6 @@ if __name__ == '__main__':
|
|
190 |
'I2A': 'cuda:0',
|
191 |
'TTS': 'cpu',
|
192 |
'T2S': 'cpu',
|
193 |
-
'Inpaint': 'cpu',
|
194 |
'ASR': 'cuda:0',
|
195 |
'A2T': 'cpu',
|
196 |
})
|
|
|
156 |
print("===============Running inpainting =============")
|
157 |
print("Inputs:", state)
|
158 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
159 |
+
# inpaint = Inpaint(device="cpu")
|
160 |
+
new_image_filename, new_audio_filename = self.inpaint.predict(audio_filename, image_filename)
|
161 |
AI_prompt = "Here are the predict audio and the mel spectrum." + f"*{new_audio_filename}*" + f"*{new_image_filename}*"
|
162 |
self.agent.memory.buffer = self.agent.memory.buffer + 'AI: ' + AI_prompt
|
163 |
print("======>Current memory:\n %s" % self.agent.memory)
|
|
|
190 |
'I2A': 'cuda:0',
|
191 |
'TTS': 'cpu',
|
192 |
'T2S': 'cpu',
|
|
|
193 |
'ASR': 'cuda:0',
|
194 |
'A2T': 'cpu',
|
195 |
})
|