Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def response(audio: tuple[int, np.ndarray], conversation: list[dict], img: str |
|
|
| 96 |
text_data = frame.split(b'\r\n\r\n', 1)[1].decode()
|
| 97 |
resp_text += text_data
|
| 98 |
conversation[-1]["content"] = resp_text
|
| 99 |
-
|
| 100 |
except Exception as e:
|
| 101 |
raise Exception(f"Error during audio streaming: {e}") from e
|
| 102 |
|
|
|
|
| 96 |
text_data = frame.split(b'\r\n\r\n', 1)[1].decode()
|
| 97 |
resp_text += text_data
|
| 98 |
conversation[-1]["content"] = resp_text
|
| 99 |
+
yield AdditionalOutputs(conversation)
|
| 100 |
except Exception as e:
|
| 101 |
raise Exception(f"Error during audio streaming: {e}") from e
|
| 102 |
|