Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.0.0:8000访问不了 #177

Open
dididiskq opened this issue Dec 29, 2023 · 0 comments
Open

0.0.0.0:8000访问不了 #177

dididiskq opened this issue Dec 29, 2023 · 0 comments

Comments

@dididiskq
Copy link

post_data = json.dumps({'prompt': 'Hello, solve 5x=13'})

print(json.loads(requests.post("http://0.0.0.0:8000", post_data).text)['response'])
Traceback (most recent call last):
File "", line 1, in
File "D:\software\python3.8\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "D:\software\python3.8\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\software\python3.8\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant