Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def process_and_translate(text: str):
|
|
| 64 |
try:
|
| 65 |
# Forward only text to space_18 later we will forward according to the context
|
| 66 |
translation_response = requests.post(
|
| 67 |
-
"https://
|
| 68 |
json={"data": [text]} # ⬅️ Now sending only `text`
|
| 69 |
).json()
|
| 70 |
|
|
|
|
| 64 |
try:
|
| 65 |
# Forward only text to space_18 later we will forward according to the context
|
| 66 |
translation_response = requests.post(
|
| 67 |
+
"https://huggingface.co/spaces/Frenchizer/space_18/predict",
|
| 68 |
json={"data": [text]} # ⬅️ Now sending only `text`
|
| 69 |
).json()
|
| 70 |
|