sadickam commited on
Commit
5baad4c
1 Parent(s): cb806bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def predict_sdg(text):
64
  cleaned_text = prep_text(text)
65
  if cleaned_text == "":
66
  raise gr.Error('This model needs some text input to return a prediction')
67
- elif cleaned_text != ""
68
  # Tokenize the preprocessed text
69
  tokenized_text = tokenizer(cleaned_text, return_tensors="pt", truncation=True, max_length=512, padding=True)
70
  # Predict
 
64
  cleaned_text = prep_text(text)
65
  if cleaned_text == "":
66
  raise gr.Error('This model needs some text input to return a prediction')
67
+ elif cleaned_text != "":
68
  # Tokenize the preprocessed text
69
  tokenized_text = tokenizer(cleaned_text, return_tensors="pt", truncation=True, max_length=512, padding=True)
70
  # Predict