limitedonly41 commited on
Commit
c786964
·
verified ·
1 Parent(s): 6c35f63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -126,9 +126,12 @@ def classify_website(url):
126
  print(df_result_train_more)
127
  text = df_result_train_more['text'][0]
128
  print(text)
129
- translated = GoogleTranslator(source='auto', target='en').translate(text[:4990])
130
-
131
  try:
 
 
 
 
 
132
  # Prepare the input prompt for the model
133
  prompt = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
134
  ### Instruction:
 
126
  print(df_result_train_more)
127
  text = df_result_train_more['text'][0]
128
  print(text)
 
 
129
  try:
130
+ translated = GoogleTranslator(source='auto', target='en').translate(text[:4990])
131
+ # except:
132
+
133
+
134
+ # try:
135
  # Prepare the input prompt for the model
136
  prompt = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
137
  ### Instruction: