Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ class Translators:
|
|
| 58 |
translation = pipe(self.input_text)
|
| 59 |
return translation[0]['translation_text']
|
| 60 |
|
| 61 |
-
def quickmt(self)
|
| 62 |
from quickmt import Translator
|
| 63 |
# Auto-detects GPU, set to "cpu" to force CPU inference
|
| 64 |
translation = Translator(f"./quickmt-{self.sl}-{self.tl}/", device="auto")
|
|
|
|
| 58 |
translation = pipe(self.input_text)
|
| 59 |
return translation[0]['translation_text']
|
| 60 |
|
| 61 |
+
def quickmt(self):
|
| 62 |
from quickmt import Translator
|
| 63 |
# Auto-detects GPU, set to "cpu" to force CPU inference
|
| 64 |
translation = Translator(f"./quickmt-{self.sl}-{self.tl}/", device="auto")
|