Spaces:
Runtime error
Runtime error
Timing0311
commited on
Commit
•
401530d
1
Parent(s):
7fcb7f9
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def translation_job(job, text):
|
|
13 |
|
14 |
input = job_map[job] + text
|
15 |
print(input)
|
16 |
-
response =
|
17 |
return response[0]['generated_text']
|
18 |
|
19 |
|
|
|
13 |
|
14 |
input = job_map[job] + text
|
15 |
print(input)
|
16 |
+
response = trans_pipe(input, max_length=100, num_beams=4)
|
17 |
return response[0]['generated_text']
|
18 |
|
19 |
|