Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def translate(source, source_language, target_language):
|
|
120 |
# num_beams=4,
|
121 |
# early_stopping=True,
|
122 |
do_sample=False,
|
123 |
-
|
124 |
)
|
125 |
t = Thread(target=generate, args=(model,), kwargs=generate_kwargs)
|
126 |
t.start()
|
|
|
120 |
# num_beams=4,
|
121 |
# early_stopping=True,
|
122 |
do_sample=False,
|
123 |
+
use_cache=True
|
124 |
)
|
125 |
t = Thread(target=generate, args=(model,), kwargs=generate_kwargs)
|
126 |
t.start()
|