Spaces:
Runtime error
Runtime error
alirani
commited on
Commit
•
67a27f9
1
Parent(s):
a6ac941
change models endpoints
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, TFAutoModelForCausalLM, TFAutoModelForSe
|
|
4 |
|
5 |
# MODEL TO CALL
|
6 |
|
7 |
-
generator_name = "Alirani/
|
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/
|
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 |
|