ikraamkb commited on
Commit
c4c89fb
·
verified ·
1 Parent(s): b0cc6e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -81,8 +81,9 @@ vqa_processor = ViltProcessor.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
81
  vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
82
 
83
  # Load GPT model to rewrite answers
84
- gpt_tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neo-1.3B")
85
- gpt_model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neo-1.3B")
 
86
 
87
  def rewrite_answer(question):
88
  prompt = f"{question}\nAnswer with a full sentence:"
 
81
  vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
82
 
83
  # Load GPT model to rewrite answers
84
+ gpt_tokenizer = AutoTokenizer.from_pretrained("distilgpt2")
85
+ gpt_model = AutoModelForCausalLM.from_pretrained("distilgpt2")
86
+
87
 
88
  def rewrite_answer(question):
89
  prompt = f"{question}\nAnswer with a full sentence:"