AndreasThinks commited on
Commit
9f18d40
·
verified ·
1 Parent(s): dcd106e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -28,12 +28,14 @@ def translate(text, source_lang, target_lang):
28
  output = query({
29
  "inputs": input_text,
30
  "parameters": {
31
- "max_new_tokens": 8000,
32
  "return_text": False,
33
  "return_full_text": False,
34
  "handle_long_generation": "hole"
35
  }
36
  })
 
 
37
 
38
  translated_text = output[0]['generated_text']
39
 
 
28
  output = query({
29
  "inputs": input_text,
30
  "parameters": {
31
+ "max_new_tokens": 6000,
32
  "return_text": False,
33
  "return_full_text": False,
34
  "handle_long_generation": "hole"
35
  }
36
  })
37
+
38
+ print(output)
39
 
40
  translated_text = output[0]['generated_text']
41