Darshan commited on
Commit
0bb4b6a
1 Parent(s): 0b8919f

permissions issue fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ class TranslateRequest(BaseModel):
71
  target_lang: str
72
 
73
 
74
- @app.post("/translate/")
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)