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

Couldn't connect to server #147

Open
xiaoxstz opened this issue Oct 3, 2024 · 1 comment
Open

Couldn't connect to server #147

xiaoxstz opened this issue Oct 3, 2024 · 1 comment

Comments

@xiaoxstz
Copy link

xiaoxstz commented Oct 3, 2024

Envrionment

  • OS: Windows 10
  • Python: 3.12.6
  • Terminal: PowerShell 7.4.5
  • pixtext: 1.1.1.2

Description

I take the steps according to the official document command

Firstly, I run it as an HTTP server with the command below

p2t serve -l en,ch_sim -H 0.0.0.0 -p 8503

The output is below.

INFO:     Started server process [21464]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8503 (Press CTRL+C to quit)

Secondly, I run the command below. Then, I saw the error Couldn't connect to server

(base) PS D:\Desktop> curl -X POST -F "file_type=page" -F "resized_shape=768" -F "embed_sep= $,$ " -F "isolated_sep=$$\n, \n$$" -F "image=@./1.jpg;type=image/jpeg" http://0.0.0.0:8503/pix2text

curl: (7) Failed to connect to 0.0.0.0 port 8503 after 0 ms: Couldn't connect to server
@breezedeus
Copy link
Owner

The calling method may be different in the Windows environment. You can search for how to use it in the command line.

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

2 participants