nicoaspra commited on
Commit
14b0092
·
1 Parent(s): bd57041
Files changed (1) hide show
  1. 01_PDF_booklet.ipynb +48 -9
01_PDF_booklet.ipynb CHANGED
@@ -642,6 +642,14 @@
642
  "execution_count": 2,
643
  "metadata": {},
644
  "outputs": [
 
 
 
 
 
 
 
 
645
  {
646
  "name": "stdout",
647
  "output_type": "stream",
@@ -670,6 +678,37 @@
670
  "execution_count": 2,
671
  "metadata": {},
672
  "output_type": "execute_result"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
  }
674
  ],
675
  "source": [
@@ -815,25 +854,25 @@
815
  },
816
  {
817
  "cell_type": "code",
818
- "execution_count": 3,
819
  "metadata": {},
820
  "outputs": [
821
  {
822
  "name": "stderr",
823
  "output_type": "stream",
824
  "text": [
825
- "2025-01-09 22:03:05.797 WARNING streamlit.runtime.scriptrunner_utils.script_run_context: Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
826
- "2025-01-09 22:03:05.835 \n",
827
  " \u001b[33m\u001b[1mWarning:\u001b[0m to view this Streamlit app on a browser, run it with the following\n",
828
  " command:\n",
829
  "\n",
830
  " streamlit run /Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/ipykernel_launcher.py [ARGUMENTS]\n",
831
- "2025-01-09 22:03:05.835 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
832
- "2025-01-09 22:03:05.835 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
833
- "2025-01-09 22:03:05.836 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
834
- "2025-01-09 22:03:05.836 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
835
- "2025-01-09 22:03:05.836 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
836
- "2025-01-09 22:03:05.836 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n"
837
  ]
838
  }
839
  ],
 
642
  "execution_count": 2,
643
  "metadata": {},
644
  "outputs": [
645
+ {
646
+ "name": "stderr",
647
+ "output_type": "stream",
648
+ "text": [
649
+ "/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
650
+ " from .autonotebook import tqdm as notebook_tqdm\n"
651
+ ]
652
+ },
653
  {
654
  "name": "stdout",
655
  "output_type": "stream",
 
678
  "execution_count": 2,
679
  "metadata": {},
680
  "output_type": "execute_result"
681
+ },
682
+ {
683
+ "name": "stderr",
684
+ "output_type": "stream",
685
+ "text": [
686
+ "Traceback (most recent call last):\n",
687
+ " File \"/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/gradio/queueing.py\", line 624, in process_events\n",
688
+ " response = await route_utils.call_process_api(\n",
689
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
690
+ " ...<5 lines>...\n",
691
+ " )\n",
692
+ " ^\n",
693
+ " File \"/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/gradio/route_utils.py\", line 323, in call_process_api\n",
694
+ " output = await app.get_blocks().process_api(\n",
695
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
696
+ " ...<11 lines>...\n",
697
+ " )\n",
698
+ " ^\n",
699
+ " File \"/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/gradio/blocks.py\", line 2025, in process_api\n",
700
+ " data = await self.postprocess_data(block_fn, result[\"prediction\"], state)\n",
701
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
702
+ " File \"/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/gradio/blocks.py\", line 1831, in postprocess_data\n",
703
+ " prediction_value = block.postprocess(prediction_value)\n",
704
+ " File \"/Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/gradio/components/file.py\", line 220, in postprocess\n",
705
+ " size=Path(value).stat().st_size,\n",
706
+ " ~~~~~~~~~~~~~~~~^^\n",
707
+ " File \"/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pathlib/_local.py\", line 515, in stat\n",
708
+ " return os.stat(self, follow_symlinks=follow_symlinks)\n",
709
+ " ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
710
+ "FileNotFoundError: [Errno 2] No such file or directory: \"Invalid Elementary Object starting with b'b' @7: b'3\\\\n%\\\\xc4\\\\xe5\\\\xf2\\\\xe5\\\\xeb\\\\xa7\\\\xf3\\\\xa0\\\\xd0\\\\xc4\\\\xc6\\\\n3 0 obj\\\\n<< /Filter /FlateDecode /Length 3454 >>\\\\nstream\\\\nx\\\\x01\\\\xadZ\\\\xcb\\\\x8e\\\\x1d\\\\xb7\\\\x11\\\\xdd'\"\n"
711
+ ]
712
  }
713
  ],
714
  "source": [
 
854
  },
855
  {
856
  "cell_type": "code",
857
+ "execution_count": 1,
858
  "metadata": {},
859
  "outputs": [
860
  {
861
  "name": "stderr",
862
  "output_type": "stream",
863
  "text": [
864
+ "2025-04-22 14:42:46.429 WARNING streamlit.runtime.scriptrunner_utils.script_run_context: Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
865
+ "2025-04-22 14:42:46.508 \n",
866
  " \u001b[33m\u001b[1mWarning:\u001b[0m to view this Streamlit app on a browser, run it with the following\n",
867
  " command:\n",
868
  "\n",
869
  " streamlit run /Users/nicoaspra/Documents/Professor/Jupyter Notebook/.venv/lib/python3.13/site-packages/ipykernel_launcher.py [ARGUMENTS]\n",
870
+ "2025-04-22 14:42:46.508 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
871
+ "2025-04-22 14:42:46.508 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
872
+ "2025-04-22 14:42:46.508 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
873
+ "2025-04-22 14:42:46.508 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
874
+ "2025-04-22 14:42:46.509 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n",
875
+ "2025-04-22 14:42:46.510 Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode.\n"
876
  ]
877
  }
878
  ],