radinhas commited on
Commit
a650fd3
1 Parent(s): 5456f7b

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +2 -2
apis/chat_api.py CHANGED
@@ -86,7 +86,7 @@ class ChatAPIApp:
86
 
87
  def translate_ai_completions(self, item: TranslateCompletionsPostItem):
88
  translator = Translator()
89
- print(os.getcwd())
90
  f = open('apis/lang_name.json', "r")
91
  available_langs = json.loads(f.read())
92
  from_lang = 'en'
@@ -253,7 +253,7 @@ class ChatAPIApp:
253
  self.app.post(
254
  prefix + "/translate/ai",
255
  summary="translate text with ai",
256
- )(self.ai_translate)
257
 
258
 
259
  self.app.post(
 
86
 
87
  def translate_ai_completions(self, item: TranslateCompletionsPostItem):
88
  translator = Translator()
89
+ #print(os.getcwd())
90
  f = open('apis/lang_name.json', "r")
91
  available_langs = json.loads(f.read())
92
  from_lang = 'en'
 
253
  self.app.post(
254
  prefix + "/translate/ai",
255
  summary="translate text with ai",
256
+ )(self.translate_ai_completions)
257
 
258
 
259
  self.app.post(