Fix : pyaudio.paInt16 missing in AudioRecorder class init
This commit is contained in:
@@ -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"]
|
||||
@@ -0,0 +1,2 @@
|
||||
flask>=2.3.0
|
||||
ollama>=0.4.7
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user