zuminghuang commited on
Commit
d8a5b56
·
verified ·
1 Parent(s): ad6d3bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -63,11 +63,10 @@ def send_pdf_to_parse(file_path, server_ip, port, route="/upload", api_key=None)
63
  return response
64
 
65
 
66
-
67
-
68
  async def send_pdf_async_aiohttp(file_path, server_ip, route="/upload", Authorization=None):
69
  """使用aiohttp异步发送PDF"""
70
- url = f"http://{server_ip}:{port}{route}"
 
71
  headers = {}
72
  if Authorization:
73
  headers["Authorization"] = f"Bearer {Authorization}"
 
63
  return response
64
 
65
 
 
 
66
  async def send_pdf_async_aiohttp(file_path, server_ip, route="/upload", Authorization=None):
67
  """使用aiohttp异步发送PDF"""
68
+ # url = f"http://{server_ip}:{port}{route}"
69
+ url = f"{server_ip}{route}"
70
  headers = {}
71
  if Authorization:
72
  headers["Authorization"] = f"Bearer {Authorization}"