Update app.py
Browse files
app.py
CHANGED
|
@@ -110,6 +110,8 @@ def classify_website(url):
|
|
| 110 |
text = df_result_train_more['text'][0]
|
| 111 |
translated = GoogleTranslator(source='auto', target='en').translate(text[:4990])
|
| 112 |
|
|
|
|
|
|
|
| 113 |
try:
|
| 114 |
# Load the model and tokenizer if they are not already loaded
|
| 115 |
if model is None or tokenizer is None:
|
|
|
|
| 110 |
text = df_result_train_more['text'][0]
|
| 111 |
translated = GoogleTranslator(source='auto', target='en').translate(text[:4990])
|
| 112 |
|
| 113 |
+
return translated
|
| 114 |
+
|
| 115 |
try:
|
| 116 |
# Load the model and tokenizer if they are not already loaded
|
| 117 |
if model is None or tokenizer is None:
|