Spaces:
Sleeping
Sleeping
update app
Browse files4 unmodified lines56789101112131415161718194 unmodified linesst.title("Coffe machine captioning app")with st.spinner('Loading model and tokenizer...'):model_id = "Fer14/paligemma_coffe_machine_caption"model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)processor = PaliGemmaProcessor.from_pretrained(model_id)st.success('Model loaded!')# Instructions for Tesseract OCR4 unmodified lines567891011121314151617181920212223244 unmodified linesst.title("Coffe machine captioning app")@st.cache_resource()def load_model():with st.spinner('Loading model and tokenizer...'):model_id = "Fer14/paligemma_coffe_machine_caption"model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)processor = PaliGemmaProcessor.from_pretrained(model_id)st.success('Model loaded!')return model, processormodel, processor = load_model()# Instructions for Tesseract OCR
app.py+11-6