Kleo commited on
Commit
0114f7e
1 Parent(s): 9484c94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -18,7 +18,6 @@ tokenizer = BertTokenizer.from_pretrained("nlpaueb/bert-base-greek-uncased-v1")
18
  # Load model
19
  model = TFBertForSequenceClassification.from_pretrained('Kleo/finetuned_bert')
20
 
21
- #pipeline= pipeline(task="text-classification", model="https://huggingface.co/spaces/Kleo/Sarcasm/blob/main/")
22
  def check_sarcasm(sentence):
23
  tf_batch = tokenizer(sentence, max_length=128, padding=True, truncation=True, return_tensors='tf')
24
  tf_outputs = model(tf_batch.input_ids, tf_batch.token_type_ids)
 
18
  # Load model
19
  model = TFBertForSequenceClassification.from_pretrained('Kleo/finetuned_bert')
20
 
 
21
  def check_sarcasm(sentence):
22
  tf_batch = tokenizer(sentence, max_length=128, padding=True, truncation=True, return_tensors='tf')
23
  tf_outputs = model(tf_batch.input_ids, tf_batch.token_type_ids)