alirani commited on
Commit
67a27f9
1 Parent(s): a6ac941

change models endpoints

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, TFAutoModelForCausalLM, TFAutoModelForSe
4
 
5
  # MODEL TO CALL
6
 
7
- generator_name = "Alirani/distilgpt2-finetuned-synopsis-genres_final"
8
  tokenizer_gen = AutoTokenizer.from_pretrained(generator_name)
9
  model_gen = TFAutoModelForCausalLM.from_pretrained(generator_name)
10
 
@@ -15,7 +15,7 @@ def generate_synopsis(model, tokenizer, title):
15
  processed_synopsis = "".join(synopsis.split('|')[2].rpartition('.')[:2]).strip()
16
  return processed_synopsis
17
 
18
- classifier_name = "Alirani/overview_classifier_final"
19
  tokenizer_clf = AutoTokenizer.from_pretrained(classifier_name)
20
  model_clf = TFAutoModelForSequenceClassification.from_pretrained(classifier_name)
21
 
 
4
 
5
  # MODEL TO CALL
6
 
7
+ generator_name = "Alirani/synopsis_generator"
8
  tokenizer_gen = AutoTokenizer.from_pretrained(generator_name)
9
  model_gen = TFAutoModelForCausalLM.from_pretrained(generator_name)
10
 
 
15
  processed_synopsis = "".join(synopsis.split('|')[2].rpartition('.')[:2]).strip()
16
  return processed_synopsis
17
 
18
+ classifier_name = "Alirani/synopsis_classifier"
19
  tokenizer_clf = AutoTokenizer.from_pretrained(classifier_name)
20
  model_clf = TFAutoModelForSequenceClassification.from_pretrained(classifier_name)
21