chore: make it compatible with chatgpt

This commit is contained in:
Sandipsinh Rathod 2024-10-13 10:25:06 -04:00
parent dbd326504c
commit fc357d17f2
No known key found for this signature in database

@ -11,7 +11,11 @@ def send_post_request(prompt):
url = "http://localhost:19194/" # Update this to your actual server URL
payload = prompt.title()
response = requests.post(url, json=payload)
return response.text
json = response.json()
if "response" in json:
return json["response"]
else:
return json
# Custom CSS to fix the input box at the bottom of the page