Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from off_topic import OffTopicDetector, Translator
|
4 |
|
5 |
|
6 |
-
translator = Translator("
|
7 |
detector = OffTopicDetector("openai/clip-vit-base-patch32", image_size="V", translator=translator)
|
8 |
|
9 |
|
|
|
3 |
from off_topic import OffTopicDetector, Translator
|
4 |
|
5 |
|
6 |
+
translator = Translator("Helsinki-NLP/opus-mt-roa-en")
|
7 |
detector = OffTopicDetector("openai/clip-vit-base-patch32", image_size="V", translator=translator)
|
8 |
|
9 |
|