Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,8 @@ def text_to_speech(input_text: TextInput):
|
|
| 70 |
@app.post("/chat/")
|
| 71 |
async def chat_with_llm(file: UploadFile = File(...)):
|
| 72 |
"""Process input WAV, send text to LLM, and return generated response as WAV."""
|
| 73 |
-
|
|
|
|
| 74 |
# Read the file content into memory without saving to disk
|
| 75 |
file_content = await file.read()
|
| 76 |
|
|
|
|
| 70 |
@app.post("/chat/")
|
| 71 |
async def chat_with_llm(file: UploadFile = File(...)):
|
| 72 |
"""Process input WAV, send text to LLM, and return generated response as WAV."""
|
| 73 |
+
# Initialize ggwave instance
|
| 74 |
+
instance = ggwave.init()
|
| 75 |
# Read the file content into memory without saving to disk
|
| 76 |
file_content = await file.read()
|
| 77 |
|