Signed-off-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
José Ulises Niño Rivera 2024-10-18 16:14:33 -04:00
parent 6cd05572c4
commit e61e78242c
23 changed files with 2708 additions and 440 deletions

View file

@ -17,4 +17,4 @@ COPY --from=builder /runtime /usr/local
COPY /app /app
WORKDIR /app
CMD ["python", "run.py"]
CMD ["python", "run_stream.py"]

View file

@ -9,7 +9,7 @@ CHAT_COMPLETION_ENDPOINT = os.getenv(
"CHAT_COMPLETION_ENDPOINT", "https://api.openai.com/v1"
)
client = OpenAI(api_key=api_key, base_url=CHAT_COMPLETION_ENDPOINT)
client = OpenAI(api_key="--", base_url=CHAT_COMPLETION_ENDPOINT)
def predict(message, history):
@ -33,4 +33,4 @@ def predict(message, history):
yield partial_message
gr.ChatInterface(predict).launch(server_name="0.0.0.0", server_port=8081)
gr.ChatInterface(predict).launch(server_name="0.0.0.0", server_port=8080)

View file

@ -1,4 +1,4 @@
gradio==4.43.0
gradio==4.44.1
async_timeout==4.0.3
loguru==0.7.2
asyncio==3.4.3