fadliaulawi commited on
Commit
be586f8
·
1 Parent(s): 7ed8b46

Fix url quote

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ else:
76
  }
77
 
78
  # Construct API URL with target language and version
79
- url = f"{os.environ['AZURE_AI_ENDPOINT_URL']}/translator/document:translate?targetLanguage={lang_id}&api-version={os.environ["AZURE_AI_API_VERSION"]}"
80
 
81
  # Send translation request to Azure
82
  response = requests.post(url, headers=headers, files=files)
 
76
  }
77
 
78
  # Construct API URL with target language and version
79
+ url = f"{os.environ['AZURE_AI_ENDPOINT_URL']}/translator/document:translate?targetLanguage={lang_id}&api-version={os.environ['AZURE_AI_API_VERSION']}"
80
 
81
  # Send translation request to Azure
82
  response = requests.post(url, headers=headers, files=files)