This commit is contained in:
Adam 2023-02-10 09:33:49 -05:00
parent 9d303d99d3
commit c4e0b10b39
4 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,3 @@
#!/bin/bash
uvicorn chatbots:api --host 10.0.1.1 --reload
docker run -p 6969:8000 chatbots_api

View file

@ -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`;

View file

@ -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()

3
readme.md Normal file
View file

@ -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