mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +02:00
wip
Signed-off-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
parent
6cd05572c4
commit
e61e78242c
23 changed files with 2708 additions and 440 deletions
|
|
@ -17,4 +17,4 @@ COPY --from=builder /runtime /usr/local
|
|||
COPY /app /app
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["python", "run.py"]
|
||||
CMD ["python", "run_stream.py"]
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue