From c4e0b10b39cab9a213b790247cc133cc110689aa Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Fri, 10 Feb 2023 09:33:49 -0500 Subject: [PATCH] be free --- api/run | 2 +- api/test/test.html | 2 +- api/test/test.py | 2 +- readme.md | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 readme.md diff --git a/api/run b/api/run index 99d3b20..1e0e0e7 100755 --- a/api/run +++ b/api/run @@ -1,3 +1,3 @@ #!/bin/bash -uvicorn chatbots:api --host 10.0.1.1 --reload +docker run -p 6969:8000 chatbots_api diff --git a/api/test/test.html b/api/test/test.html index cc125bd..917d102 100644 --- a/api/test/test.html +++ b/api/test/test.html @@ -62,7 +62,7 @@ message.value = ""; history.scrollTop = history.scrollHeight - let fetchRes = fetch('http://localhost:8000/chat', options); + let fetchRes = fetch('http://localhost:6969/chat', options); fetchRes.then(res => res.json()).then(d => { history.value = `${history.value}${d.name}: ${d.message}\n`; diff --git a/api/test/test.py b/api/test/test.py index baba984..247e998 100644 --- a/api/test/test.py +++ b/api/test/test.py @@ -19,7 +19,7 @@ while True: } response = requests.post( - 'http://127.0.0.1:8000/chat/', + 'http://127.0.0.1:6969/chat/', json=packet, ).json() diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b8b1e3e --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +# Cartman + +Code to train and deploy a chatbot using [DialoGPT](https://huggingface.co/microsoft/DialoGPT-large?text=Hi.) with cartman example