Spaces:
Sleeping
Sleeping
update modle_id
Browse files6 unmodified lines7891011121314156 unmodified linesuploaded_image = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])model = PaliGemmaForConditionalGeneration.from_pretrained("Fer14/paligemma_coffe_describer", from_tf=True)processor = PaliGemmaProcessor.from_pretrained("Fer14/paligemma_coffe_describer")prompt = (f"Generate a caption for the following coffee maker image. The caption has to be of the following structure:\n"6 unmodified lines789101112131415166 unmodified linesuploaded_image = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])model_id = "Fer14/paligemma_coffe_machine_caption"model = PaliGemmaForConditionalGeneration.from_pretrained(model_id)processor = PaliGemmaProcessor.from_pretrained(model_id)prompt = (f"Generate a caption for the following coffee maker image. The caption has to be of the following structure:\n"
app.py+3-2