limitedonly41 commited on
Commit
4099284
·
verified ·
1 Parent(s): 54c8451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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: