J4Lee commited on
Commit
5ea9a59
1 Parent(s): 76b5d41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ st.set_page_config(page_title= "Reports generation from Radiological Image ")
18
  @st.cache(allow_output_mutation=True)
19
  def get_model():
20
  #device = "cuda" # the device to load the model onto
21
- model = MistralForCausalLM.from_pretrained("MariamAde/Mistral_finetuned_base2")
22
  tokenizer = AutoTokenizer.from_pretrained("MariamAde/Mistral_finetuned_base2")
23
  return tokenizer, model
24
 
 
18
  @st.cache(allow_output_mutation=True)
19
  def get_model():
20
  #device = "cuda" # the device to load the model onto
21
+ model = AutoPeftModelForCausalLM.from_pretrained("MariamAde/Mistral_finetuned_base2")
22
  tokenizer = AutoTokenizer.from_pretrained("MariamAde/Mistral_finetuned_base2")
23
  return tokenizer, model
24