Pix2Text icon indicating copy to clipboard operation
Pix2Text copied to clipboard

Couldn't connect to server

Open xiaoxstz opened this issue 4 months ago • 1 comments

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

xiaoxstz avatar Oct 03 '24 12:10 xiaoxstz