How do i communicate with the server? #999
Unanswered
AllNamesAreToken
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You're missing a lot of key parts that are required, if you haven't already, you should check out the api example. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im writing a Python script, that needs to send a prompt to the server. so far i've tried
import requests
url= "http://localhost:7860/"
params = {"text":prompt}
and
response = requests.post("http://localhost:7860", json={"text": prompt})
The best i get is an 405 error, that means it does not understand what i want :/
Is there some kind of way to get it to take the prompt and read the answer?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions