From 8487947f5d5925756939d1c777caaad1717077a2 Mon Sep 17 00:00:00 2001 From: Inga Ulusoy Date: Thu, 23 Oct 2025 10:02:09 +0200 Subject: [PATCH] fix: update function call in notebook to conform with renaming --- ammico/notebooks/DemoImageSummaryVQA.ipynb | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/ammico/notebooks/DemoImageSummaryVQA.ipynb b/ammico/notebooks/DemoImageSummaryVQA.ipynb index b067e1f..c15e3e7 100644 --- a/ammico/notebooks/DemoImageSummaryVQA.ipynb +++ b/ammico/notebooks/DemoImageSummaryVQA.ipynb @@ -62,7 +62,7 @@ "outputs": [], "source": [ "image_dict = ammico.find_files(\n", - " path=str(\"/insert/your/path/here/\"),\n", + " path=str(\"../../data/in\"),\n", " limit=-1, # -1 means no limit on the number of files, by default it is set to 20\n", ")" ] @@ -114,7 +114,9 @@ "metadata": {}, "outputs": [], "source": [ - "summaries = img.analyse_images(analysis_type=\"summary\", is_concise_summary=False)" + "summaries = img.analyse_images_from_dict(\n", + " analysis_type=\"summary\", is_concise_summary=False\n", + ")" ] }, { @@ -158,17 +160,25 @@ "metadata": {}, "outputs": [], "source": [ - "vqa_results = img.analyse_images(\n", + "vqa_results = img.analyse_images_from_dict(\n", " analysis_type=\"questions\",\n", " list_of_questions=questions,\n", " is_concise_answer=True,\n", ")" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "17", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { "kernelspec": { - "display_name": "ammico-dev", + "display_name": "ammico", "language": "python", "name": "python3" }, @@ -182,7 +192,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.13" + "version": "3.11.14" } }, "nbformat": 4,