Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
|
6 |
# Define the function to call the API
|
7 |
def translate(text):
|
8 |
-
url = os.getenv("
|
9 |
payload = json.dumps({
|
10 |
"text": text
|
11 |
})
|
|
|
5 |
|
6 |
# Define the function to call the API
|
7 |
def translate(text):
|
8 |
+
url = os.getenv("TRANSLATION_URL")
|
9 |
payload = json.dumps({
|
10 |
"text": text
|
11 |
})
|