Fix : pyaudio.paInt16 missing in AudioRecorder class init

This commit is contained in:
martin legrand
2025-03-22 12:12:11 +01:00
parent b1ad643364
commit 5e7dd321f0
6 changed files with 53 additions and 9 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM ubuntu:20.04
WORKDIR /app
RUN apt-get update && \
apt-get install -y python3 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
CMD ["python3", "--version"]
+2
View File
@@ -0,0 +1,2 @@
flask>=2.3.0
ollama>=0.4.7
+4 -1
View File
@@ -37,7 +37,10 @@ class GenerationState:
state = GenerationState()
def generate_response(history): # Only takes history as an argument
def generate_response_vllm(history):
pass
def generate_response_ollama(history): # Only takes history as an argument
global state
try:
with state.lock: