Synced
This commit is contained in:
parent
1fb12f05a9
commit
59aca80587
1 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import requests
|
||||
import os
|
||||
|
||||
port = os.environ.get('LT_PORT', '5000')
|
||||
response = requests.post(
|
||||
url='http://localhost:5000/translate',
|
||||
url=f'http://localhost:{port}/translate',
|
||||
headers={'Content-Type': 'application/json'},
|
||||
json={
|
||||
'q': 'Hello World!',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue