Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import os
|
|
6 |
# Define the function to call the API
|
7 |
def translate(text):
|
8 |
url = os.getenv("TRANSLATION_API_URL")
|
9 |
-
#url = "https://xayq0bvi0h.execute-api.eu-west-2.amazonaws.com/api/translate"
|
10 |
payload = json.dumps({
|
11 |
"text": text
|
12 |
})
|
|
|
6 |
# Define the function to call the API
|
7 |
def translate(text):
|
8 |
url = os.getenv("TRANSLATION_API_URL")
|
|
|
9 |
payload = json.dumps({
|
10 |
"text": text
|
11 |
})
|