Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
#sentencepiece no installed??
|
5 |
|
6 |
translator = pipeline("translation_en_to_ru", model="Helsinki-NLP/opus-mt-en-ru")
|
7 |
-
image_classifier = pipeline("image-classification", model="microsoft/resnet-50")
|
8 |
|
9 |
def translate_to_russian(text):
|
10 |
try:
|
|
|
4 |
#sentencepiece no installed??
|
5 |
|
6 |
translator = pipeline("translation_en_to_ru", model="Helsinki-NLP/opus-mt-en-ru")
|
7 |
+
image_classifier = pipeline("image-classification", model="microsoft/resnet-50", use_fast=False)
|
8 |
|
9 |
def translate_to_russian(text):
|
10 |
try:
|