be free
This commit is contained in:
parent
9d303d99d3
commit
c4e0b10b39
4 changed files with 6 additions and 3 deletions
2
api/run
2
api/run
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
uvicorn chatbots:api --host 10.0.1.1 --reload
|
||||
docker run -p 6969:8000 chatbots_api
|
||||
|
|
|
@ -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`;
|
||||
|
|
|
@ -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
3
readme.md
Normal 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
|
Loading…
Add table
Reference in a new issue