Spaces:
Sleeping
Sleeping
Darshan
commited on
Commit
•
0bb4b6a
1
Parent(s):
0b8919f
permissions issue fix
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ class TranslateRequest(BaseModel):
|
|
71 |
target_lang: str
|
72 |
|
73 |
|
74 |
-
@app.
|
75 |
def translate(request: TranslateRequest):
|
76 |
try:
|
77 |
result = translate_text(request.sentences, request.target_lang)
|
|
|
71 |
target_lang: str
|
72 |
|
73 |
|
74 |
+
@app.get("/translate/")
|
75 |
def translate(request: TranslateRequest):
|
76 |
try:
|
77 |
result = translate_text(request.sentences, request.target_lang)
|