Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ 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 = AutoModelForCausalLM.from_pretrained("MariamAde/
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained("MariamAde/
|
23 |
return tokenizer, model
|
24 |
|
25 |
|
|
|
18 |
@st.cache(allow_output_mutation=True)
|
19 |
def get_model():
|
20 |
#device = "cuda" # the device to load the model onto
|
21 |
+
model = AutoModelForCausalLM.from_pretrained("MariamAde/Mistral_finetuned_base2")
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("MariamAde/Mistral_finetuned_base2")
|
23 |
return tokenizer, model
|
24 |
|
25 |
|