Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import torchvision.transforms as transforms
|
|
6 |
from transformers import VisionEncoderDecoderModel, AutoTokenizer, AutoModelForSeq2SeqLM
|
7 |
|
8 |
# Load the models
|
9 |
-
caption_model = VisionEncoderDecoderModel.from_pretrained('/
|
10 |
caption_tokenizer = AutoTokenizer.from_pretrained('aubmindlab/bert-base-arabertv02')
|
11 |
question_model = AutoModelForSeq2SeqLM.from_pretrained("Mihakram/AraT5-base-question-generation")
|
12 |
question_tokenizer = AutoTokenizer.from_pretrained("Mihakram/AraT5-base-question-generation")
|
|
|
6 |
from transformers import VisionEncoderDecoderModel, AutoTokenizer, AutoModelForSeq2SeqLM
|
7 |
|
8 |
# Load the models
|
9 |
+
caption_model = VisionEncoderDecoderModel.from_pretrained('Mayada/AIC-transformer')
|
10 |
caption_tokenizer = AutoTokenizer.from_pretrained('aubmindlab/bert-base-arabertv02')
|
11 |
question_model = AutoModelForSeq2SeqLM.from_pretrained("Mihakram/AraT5-base-question-generation")
|
12 |
question_tokenizer = AutoTokenizer.from_pretrained("Mihakram/AraT5-base-question-generation")
|