Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from huggingface_hub import notebook_login
|
|
10 |
import fire
|
11 |
import streamlit as st
|
12 |
|
13 |
-
#git clone https://huggingface.co/spaces/J4Lee/RadiantScriptor
|
14 |
|
15 |
|
16 |
st.set_page_config(page_title= "Reports generation from Radiological Image ")
|
@@ -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 =
|
22 |
tokenizer = AutoTokenizer.from_pretrained("MariamAde/Mistral_finetuned_base2")
|
23 |
return tokenizer, model
|
24 |
|
|
|
10 |
import fire
|
11 |
import streamlit as st
|
12 |
|
13 |
+
#git clone https://huggingface.co/spaces/J4Lee/RadiantScriptor AutoModelForSequenceClassification
|
14 |
|
15 |
|
16 |
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 |
|