{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[]},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","source":["from google.colab import drive\n","drive.mount('/content/drive')\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"de1ZbwwyILyN","executionInfo":{"status":"ok","timestamp":1768658029034,"user_tz":-180,"elapsed":2645,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"89caf538-a5fc-4f3e-d83a-7dfab46c7ec3"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n"]}]},{"cell_type":"code","source":["# @title\n","import torch\n","import os\n","import sys\n","\n","# التأكد من وجود GPU\n","if not torch.cuda.is_available():\n"," print(\"⚠️ تحذير: GPU غير مفعل. يرجى تفعيله من Runtime > Change runtime type\")\n","else:\n"," print(f\"✅ GPU متاح: {torch.cuda.get_device_name(0)}\")\n","\n","# تثبيت المكتبات الضرورية\n","!pip install piqa==1.3.1 gradio==4.44.1 tqdm -q\n","!pip install -U numpy -q\n","\n","import numpy as np\n","print(f\"PyTorch: {torch.__version__}\")\n","print(f\"NumPy: {np.__version__}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"yG4xjgYe53vh","executionInfo":{"status":"ok","timestamp":1768658042710,"user_tz":-180,"elapsed":13645,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"b7917a81-bdba-4a6e-9677-784a276f2ecb","cellView":"form","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU متاح: Tesla T4\n","PyTorch: 2.9.0+cu126\n","NumPy: 2.4.1\n"]}]},{"cell_type":"code","source":["# @title\n","import torch\n","import os\n","import sys\n","\n","# التأكد من وجود GPU\n","if not torch.cuda.is_available():\n"," print(\"⚠️ تحذير: GPU غير مفعل. يرجى تفعيله من Runtime > Change runtime type\")\n","else:\n"," print(f\"✅ GPU متاح: {torch.cuda.get_device_name(0)}\")\n","\n","# ✅ تثبيت المكتبات الضرورية بالإصدارات المتوافقة\n","!pip install --upgrade --force-reinstall \\\n"," numpy==1.26.4 \\\n"," websockets==15.0.1 \\\n"," gradio==4.44.1 \\\n"," gradio_client==0.15.0 \\\n"," piqa==1.3.1 \\\n"," tqdm -q\n","\n","# ✅ التحقق من الإصدارات بعد التثبيت\n","import numpy as np\n","print(f\"PyTorch: {torch.__version__}\")\n","print(f\"NumPy: {np.__version__}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"0QMWroAkBAIE","executionInfo":{"status":"ok","timestamp":1768658047529,"user_tz":-180,"elapsed":4815,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"259160ab-cafa-44eb-f31b-bfa2ca2c6f57","cellView":"form","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU متاح: Tesla T4\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0mPyTorch: 2.9.0+cu126\n","NumPy: 2.4.1\n"]}]},{"cell_type":"code","source":["# @title\n","import torch\n","import os\n","import sys\n","\n","# التأكد من وجود GPU\n","if not torch.cuda.is_available():\n"," print(\"⚠️ تحذير: GPU غير مفعل. يرجى تفعيله من Runtime > Change runtime type\")\n","else:\n"," print(f\"✅ GPU متاح: {torch.cuda.get_device_name(0)}\")\n","\n","# ✅ تثبيت المكتبات الضرورية بالإصدارات المتوافقة\n","!pip install --upgrade --force-reinstall \\\n"," numpy==1.26.4 \\\n"," websockets==15.0.1 \\\n"," gradio \\\n"," piqa==1.3.1 \\\n"," tqdm -q\n","\n","# ✅ التحقق من الإصدارات بعد التثبيت\n","import numpy as np\n","print(f\"PyTorch: {torch.__version__}\")\n","print(f\"NumPy: {np.__version__}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"cellView":"form","id":"SBfXbzeSBOaF","executionInfo":{"status":"ok","timestamp":1768621305103,"user_tz":-180,"elapsed":424643,"user":{"displayName":"Jack Jeason","userId":"07787942258267825963"}},"outputId":"f2153d32-5533-44d0-f57d-cd69f77f247f"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU متاح: Tesla T4\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.6/41.6 kB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m91.2/91.2 kB\u001b[0m \u001b[31m5.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m90.6/90.6 kB\u001b[0m \u001b[31m7.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m182.5/182.5 kB\u001b[0m \u001b[31m17.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m23.0/23.0 MB\u001b[0m \u001b[31m37.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m55.7/55.7 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.5/78.5 kB\u001b[0m \u001b[31m5.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m113.6/113.6 kB\u001b[0m \u001b[31m12.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.4/1.4 MB\u001b[0m \u001b[31m85.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m103.1/103.1 kB\u001b[0m \u001b[31m9.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m73.5/73.5 kB\u001b[0m \u001b[31m7.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.8/78.8 kB\u001b[0m \u001b[31m8.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m534.5/534.5 kB\u001b[0m \u001b[31m38.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.9/134.9 kB\u001b[0m \u001b[31m12.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m139.0/139.0 kB\u001b[0m \u001b[31m15.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m66.5/66.5 kB\u001b[0m \u001b[31m6.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.4/12.4 MB\u001b[0m \u001b[31m135.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.0/7.0 MB\u001b[0m \u001b[31m106.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m463.6/463.6 kB\u001b[0m \u001b[31m35.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m73.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m807.9/807.9 kB\u001b[0m \u001b[31m58.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m74.0/74.0 kB\u001b[0m \u001b[31m6.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m899.7/899.7 MB\u001b[0m \u001b[31m1.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m594.3/594.3 MB\u001b[0m \u001b[31m2.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m10.2/10.2 MB\u001b[0m \u001b[31m56.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m88.0/88.0 MB\u001b[0m \u001b[31m14.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m954.8/954.8 kB\u001b[0m \u001b[31m48.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m706.8/706.8 MB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m193.1/193.1 MB\u001b[0m \u001b[31m1.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m73.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m63.6/63.6 MB\u001b[0m \u001b[31m14.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m267.5/267.5 MB\u001b[0m \u001b[31m975.7 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m288.2/288.2 MB\u001b[0m \u001b[31m984.4 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m287.2/287.2 MB\u001b[0m \u001b[31m898.8 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m322.3/322.3 MB\u001b[0m \u001b[31m865.8 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m39.3/39.3 MB\u001b[0m \u001b[31m20.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m124.7/124.7 MB\u001b[0m \u001b[31m5.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m90.0/90.0 kB\u001b[0m \u001b[31m7.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m170.5/170.5 MB\u001b[0m \u001b[31m1.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.0/8.0 MB\u001b[0m \u001b[31m96.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m47.4/47.4 kB\u001b[0m \u001b[31m4.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m44.6/44.6 kB\u001b[0m \u001b[31m4.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m68.5/68.5 kB\u001b[0m \u001b[31m6.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m108.3/108.3 kB\u001b[0m \u001b[31m10.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m201.8/201.8 kB\u001b[0m \u001b[31m20.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.3/3.3 MB\u001b[0m \u001b[31m85.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m71.0/71.0 kB\u001b[0m \u001b[31m6.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m75.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m229.9/229.9 kB\u001b[0m \u001b[31m23.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m509.2/509.2 kB\u001b[0m \u001b[31m41.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m243.4/243.4 kB\u001b[0m \u001b[31m23.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.3/6.3 MB\u001b[0m \u001b[31m93.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m348.5/348.5 kB\u001b[0m \u001b[31m33.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m152.9/152.9 kB\u001b[0m \u001b[31m15.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m51.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m47.4/47.4 kB\u001b[0m \u001b[31m3.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m87.3/87.3 kB\u001b[0m \u001b[31m8.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m536.2/536.2 kB\u001b[0m \u001b[31m45.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m62.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25h\u001b[31mERROR: Operation cancelled by user\u001b[0m\u001b[31m\n","\u001b[0mTraceback (most recent call last):\n"," File \"/usr/lib/python3.12/shutil.py\", line 847, in move\n"," os.rename(src, real_dst)\n","OSError: [Errno 18] Invalid cross-device link: '/usr/local/lib/python3.12/dist-packages/torch/' -> '/usr/local/lib/python3.12/dist-packages/~orch'\n","\n","During handling of the above exception, another exception occurred:\n","\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 179, in exc_logging_wrapper\n"," status = run_func(*args)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/req_command.py\", line 67, in wrapper\n"," return func(self, options, args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/commands/install.py\", line 455, in run\n"," installed = install_given_reqs(\n"," ^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/req/__init__.py\", line 65, in install_given_reqs\n"," uninstalled_pathset = requirement.uninstall(auto_confirm=True)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/req/req_install.py\", line 722, in uninstall\n"," uninstalled_pathset.remove(auto_confirm, verbose)\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/req/req_uninstall.py\", line 370, in remove\n"," moved.stash(path)\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/req/req_uninstall.py\", line 261, in stash\n"," renames(path, new_path)\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/utils/misc.py\", line 356, in renames\n"," shutil.move(old, new)\n"," File \"/usr/lib/python3.12/shutil.py\", line 863, in move\n"," copytree(src, real_dst, copy_function=copy_function,\n"," File \"/usr/lib/python3.12/shutil.py\", line 600, in copytree\n"," return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/shutil.py\", line 536, in _copytree\n"," copytree(srcobj, dstname, symlinks, ignore, copy_function,\n"," File \"/usr/lib/python3.12/shutil.py\", line 600, in copytree\n"," return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/shutil.py\", line 540, in _copytree\n"," copy_function(srcobj, dstname)\n"," File \"/usr/lib/python3.12/shutil.py\", line 475, in copy2\n"," copyfile(src, dst, follow_symlinks=follow_symlinks)\n"," File \"/usr/lib/python3.12/shutil.py\", line 273, in copyfile\n"," _fastcopy_sendfile(fsrc, fdst)\n"," File \"/usr/lib/python3.12/shutil.py\", line 150, in _fastcopy_sendfile\n"," sent = os.sendfile(outfd, infd, offset, blocksize)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","KeyboardInterrupt\n","\n","During handling of the above exception, another exception occurred:\n","\n","Traceback (most recent call last):\n"," File \"/usr/local/bin/pip3\", line 10, in \n"," sys.exit(main())\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/main.py\", line 80, in main\n"," return command.main(cmd_args)\n"," ^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 100, in main\n"," return self._main(args)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 232, in _main\n"," return run(options, args)\n"," ^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 216, in exc_logging_wrapper\n"," logger.debug(\"Exception information:\", exc_info=True)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1527, in debug\n"," self._log(DEBUG, msg, args, **kwargs)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1684, in _log\n"," self.handle(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1700, in handle\n"," self.callHandlers(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1762, in callHandlers\n"," hdlr.handle(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1028, in handle\n"," self.emit(record)\n"," File \"/usr/lib/python3.12/logging/handlers.py\", line 75, in emit\n"," logging.FileHandler.emit(self, record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1280, in emit\n"," StreamHandler.emit(self, record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1160, in emit\n"," msg = self.format(record)\n"," ^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 999, in format\n"," return fmt.format(record)\n"," ^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/utils/logging.py\", line 112, in format\n"," formatted = super().format(record)\n"," ^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 711, in format\n"," record.exc_text = self.formatException(record.exc_info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 661, in formatException\n"," traceback.print_exception(ei[0], ei[1], tb, None, sio)\n"," File \"/usr/lib/python3.12/traceback.py\", line 124, in print_exception\n"," te = TracebackException(type(value), value, tb, limit=limit, compact=True)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/traceback.py\", line 733, in __init__\n"," self.stack = StackSummary._extract_from_extended_frame_gen(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/traceback.py\", line 418, in _extract_from_extended_frame_gen\n"," for f, (lineno, end_lineno, colno, end_colno) in frame_gen:\n"," ^^^^^^^^^\n"," File \"/usr/lib/python3.12/traceback.py\", line 355, in _walk_tb_with_full_positions\n"," positions = _get_code_position(tb.tb_frame.f_code, tb.tb_lasti)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/traceback.py\", line 369, in _get_code_position\n"," return next(itertools.islice(positions_gen, instruction_index // 2, None))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","KeyboardInterrupt\n","^C\n","PyTorch: 2.9.0+cu126\n","NumPy: 2.4.1\n"]}]},{"cell_type":"code","source":["# @title\n","import numpy as np\n","import matplotlib.pyplot as plt\n","from mpl_toolkits.mplot3d import Axes3D\n","from PIL import Image\n","import io\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","IMAGE_SIZE = 128\n","\n","def generate_image_matplotlib(azimuth, elevation, image_size=128):\n"," fig = plt.figure(figsize=(2, 2), dpi=image_size / 2)\n"," ax = fig.add_subplot(111, projection='3d')\n","\n"," # هيكل الجسم\n"," body_parts = {\n"," \"torso\": {\"pos\": [0, 0, 0.7], \"size\": [0.6, 0.4, 1.0]},\n"," \"head\": {\"pos\": [0, 0, 1.6], \"size\": [0.3, 0.3, 0.3]},\n"," \"l_arm\": {\"pos\": [-0.5, 0, 1.0], \"size\": [0.2, 0.2, 0.7]},\n"," \"r_arm\": {\"pos\": [0.5, 0, 1.0], \"size\": [0.2, 0.2, 0.7]},\n"," \"l_leg\": {\"pos\": [-0.25, 0, -0.3], \"size\": [0.25, 0.25, 0.8]},\n"," \"r_leg\": {\"pos\": [0.25, 0, -0.3], \"size\": [0.25, 0.25, 0.8]},\n"," }\n","\n"," for part, data in body_parts.items():\n"," x, y, z = data[\"pos\"]\n"," dx, dy, dz = data[\"size\"]\n"," ax.bar3d(x - dx/2, y - dy/2, z - dz/2, dx, dy, dz, color='grey', edgecolor='black')\n","\n"," ax.view_init(elev=elevation, azim=azimuth)\n"," ax.set_xlim(-1.5, 1.5); ax.set_ylim(-1.5, 1.5); ax.set_zlim(-1.5, 2.0)\n"," ax.set_axis_off()\n"," fig.subplots_adjust(left=0, right=1, bottom=0, top=1)\n","\n"," buf = io.BytesIO()\n"," fig.savefig(buf, format='png', facecolor='white')\n"," buf.seek(0)\n"," img = Image.open(buf).convert('L').resize((image_size, image_size), Image.LANCZOS)\n"," plt.close(fig)\n"," return np.array(img, dtype=np.float32) / 255.0\n"],"metadata":{"id":"senzjLvU6mXr","cellView":"form"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# @title\n","print(\"--- جاري توليد عينات للتحقق ---\")\n","fig, axes = plt.subplots(2, 5, figsize=(15, 6))\n","axes = axes.ravel()\n","for i in range(10):\n"," img = generate_image_matplotlib(np.random.uniform(0, 360), np.random.uniform(-20, 50))\n"," axes[i].imshow(img, cmap='gray')\n"," axes[i].axis('off')\n","plt.show()\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":400},"id":"cvU3BBb86rFE","executionInfo":{"status":"ok","timestamp":1768656662754,"user_tz":-180,"elapsed":802,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"e51a1546-e7b8-49cb-fc81-1580a53a6dee","collapsed":true,"cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["--- جاري توليد عينات للتحقق ---\n"]},{"output_type":"display_data","data":{"text/plain":["
"],"image/png":"iVBORw0KGgoAAAANSUhEUgAABJ4AAAHYCAYAAAAMKiI8AAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAedJJREFUeJzt3XtwXOd93//P7p6zV2AXd4IECd5EiaIkStbFluxYUuzUdTNxnWQST5I2bppLnSZpkqZJ43Z6yUx+naSTSTLttGmmaWfca1LbcpzEiSxLkeU4lmzdJZoXieINJHG/7f12ztnfH8xztFgsgAWIA4Dk+zXDIbhYLBbSP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uBDWpdsIlEIspkMuv6+mbValX5fH7ViihsDa6GdhjP85TNZv1ktvl42Eaj4ZfzV6tVf6V1PSuqlUpFtVpNtVpNjuME/NMAN7+uri5lMhktLi4qm82qVCopkUgEVumw3t4UADpnxmx3d7eOHDmiiYkJVatVxePxJZ/fv3+/0un0krL9djernucpGo1u5Y8A3FKy2aympqaUy+VUq9Xkuq6SyaQfAHfaf22157VbTIrH43710z/6R/9Ijz32mO644w4NDg5ykh2wCTZrgdXc9z7++OO64447NundYSMInnaYUCikhYUFVSoVf8Js3s9aqVTkeZ7q9bpKpVLbJqftXtOo1Wr+aRyswgLXL51Oq7+/X/F4XPV6XYuLi7Jt26+AkpZXJW7k5LrWELper8txHDUaDTmOs+opOwDWp7u7W7fddptmZmaWnExlxm9vb696e3s7ei3TFwbA5jMLsaVSSdK7FVBmW03rKVjmORs5kKddZVQoFNLDDz+sj3/845vw0wBYzUaCKDNujxw5oj179gTxttAhkocdJBqNKh6P6/XXX29709p8w1mr1ZTP5zf8ve68804dO3bsut8zcKu77777dODAAc3NzemrX/2qnn76aX34wx/2L4JbbSQYMmO+VCqpVqupUqkom81qcXFRrutqcnJSly5d0qFDhwiegE1w22236Sd+4id0+vRpLSws+I9fz/hibAKbz4RMjUZDhUJBxWJRk5OTsm1biURCPT09/tbYTk6KXo0JrDzP09WrVzUxMcHhAcAmW62oYiPzaDqd1u7duxWNRqlG3GYETzvIBz7wAXmepz//8z/XlStXNDY25n+uOYiSlu5/Xem0jnYOHz6s97///Xrsscd02223beK7B24tc3Nzeu655zQxMaGZmRm9+uqrOn/+vEqlkt566y2VSqVljYlNU0SzHcBxHP/jer2uarXqn85hnmsaFbc2USyXyyqXy3JdV0899ZSy2aw+/elPKxqNcoMLXKdMJqM77rhDyWRy016TG1Rg84XDYdm2rZ6eHn97XT6fl+d5KpfLkiTLspTL5RSLxfxAyrSqaNbcbLyZ2XWwsLCgXC6n+fl5VSoVxeNx/cAP/IBGR0e35ocFbgHN97fFYlG5XM6/723+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AAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEARPAAAAAAAACATBEwAAAAAAAAJB8AQAAAAAAIBAEDwBAAAAAAAgEP8/3fZGvVg2j7EAAAAASUVORK5CYII=\n"},"metadata":{}}]},{"cell_type":"code","source":["# @title\n","import torch.nn as nn\n","from torch.utils.data import Dataset, DataLoader\n","from torchvision import transforms\n","\n","class MatplotlibDataset(Dataset):\n"," def __init__(self, length=500):\n"," self.length = length\n"," self.transform = transforms.Compose([\n"," transforms.ToTensor(),\n"," transforms.RandomAffine(degrees=5, translate=(0.05, 0.05)),\n"," ])\n","\n"," def __len__(self): return self.length\n","\n"," def __getitem__(self, idx):\n"," az_a, el_a = np.random.uniform(0, 360), np.random.uniform(-20, 50)\n"," az_b, el_b = np.random.uniform(0, 360), np.random.uniform(-20, 50)\n","\n"," img_a = generate_image_matplotlib(az_a, el_a)\n"," img_b = generate_image_matplotlib(az_b, el_b)\n","\n"," # تحويل الصور إلى Tensors\n"," src_tensor = self.transform(img_a)\n"," tgt_tensor = torch.from_numpy(img_b).unsqueeze(0)\n","\n"," # متجه الموضع (Normalized)\n"," pose_vec = torch.tensor([az_b/180.0 - 1.0, el_b/45.0], dtype=torch.float32)\n","\n"," return src_tensor, pose_vec, tgt_tensor\n","\n","class ConditionalUNet(nn.Module):\n"," def __init__(self):\n"," super().__init__()\n"," def cb(i, o): return nn.Sequential(nn.Conv2d(i,o,3,1,1), nn.BatchNorm2d(o), nn.ReLU(True), nn.Conv2d(o,o,3,1,1), nn.BatchNorm2d(o), nn.ReLU(True))\n"," self.enc1, self.enc2, self.enc3, self.enc4 = cb(1,64), cb(64,128), cb(128,256), cb(256,512)\n"," self.pool = nn.MaxPool2d(2)\n"," self.bottleneck = cb(512, 1024)\n"," self.pose_fc = nn.Linear(2, 1024*8*8)\n"," self.up4 = nn.ConvTranspose2d(2048, 512, 2, 2)\n"," self.dec4 = cb(1024, 512)\n"," self.up3 = nn.ConvTranspose2d(512, 256, 2, 2)\n"," self.dec3 = cb(512, 256)\n"," self.up2 = nn.ConvTranspose2d(256, 128, 2, 2)\n"," self.dec2 = cb(256, 128)\n"," self.up1 = nn.ConvTranspose2d(128, 64, 2, 2)\n"," self.dec1 = cb(128, 64)\n"," self.out = nn.Sequential(nn.Conv2d(64, 1, 1), nn.Sigmoid())\n","\n"," def forward(self, img, pose):\n"," s1 = self.enc1(img); s2 = self.enc2(self.pool(s1)); s3 = self.enc3(self.pool(s2)); s4 = self.enc4(self.pool(s3))\n"," b = self.bottleneck(self.pool(s4))\n"," p = self.pose_fc(pose).view(-1, 1024, 8, 8)\n"," c4 = self.dec4(torch.cat([self.up4(torch.cat([b, p], 1)), s4], 1))\n"," c3 = self.dec3(torch.cat([self.up3(c4), s3], 1))\n"," c2 = self.dec2(torch.cat([self.up2(c3), s2], 1))\n"," c1 = self.dec1(torch.cat([self.up1(c2), s1], 1))\n"," return self.out(c1)\n","\n","print(\"✅ تم تعريف النموذج والبيانات\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"MXQpvQBD6tZm","executionInfo":{"status":"ok","timestamp":1768658048866,"user_tz":-180,"elapsed":1293,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"0c43174f-8927-4a50-a5fd-c825a81a331a","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم تعريف النموذج والبيانات\n"]}]},{"cell_type":"code","source":["# @title\n","from piqa import SSIM\n","from tqdm import tqdm\n","\n","model = ConditionalUNet().to(device)\n","optimizer = torch.optim.AdamW(model.parameters(), lr=2e-4)\n","criterion_l1 = nn.L1Loss()\n","criterion_ssim = SSIM(n_channels=1).to(device)\n","\n","train_loader = DataLoader(MatplotlibDataset(400), batch_size=8, shuffle=True)\n","\n","print(\"🚀 بدء التدريب...\")\n","for epoch in range(5):\n"," model.train()\n"," pbar = tqdm(train_loader, desc=f\"Epoch {epoch+1}\")\n"," for src, pose, tgt in pbar:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n","\n"," optimizer.zero_grad()\n"," pred = model(src, pose)\n","\n"," loss = 0.7 * criterion_l1(pred, tgt) + 0.3 * (1 - criterion_ssim(pred, tgt))\n"," loss.backward()\n"," optimizer.step()\n","\n"," pbar.set_postfix(loss=f\"{loss.item():.4f}\")\n","\n","torch.save(model.state_dict(), \"model.pth\")\n","print(\"✅ تم التدريب وحفظ النموذج\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"ZR2o4Wfa6uRK","executionInfo":{"status":"ok","timestamp":1768632924681,"user_tz":-180,"elapsed":189902,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"7464440e-7468-4d98-967d-a2ecac8a391e","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["🚀 بدء التدريب...\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 1: 100%|██████████| 50/50 [00:48<00:00, 1.02it/s, loss=0.3069]\n","Epoch 2: 100%|██████████| 50/50 [00:34<00:00, 1.44it/s, loss=0.2320]\n","Epoch 3: 100%|██████████| 50/50 [00:33<00:00, 1.51it/s, loss=0.1837]\n","Epoch 4: 100%|██████████| 50/50 [00:36<00:00, 1.35it/s, loss=0.1542]\n","Epoch 5: 100%|██████████| 50/50 [00:35<00:00, 1.42it/s, loss=0.1358]\n"]},{"output_type":"stream","name":"stdout","text":["✅ تم التدريب وحفظ النموذج\n"]}]},{"cell_type":"markdown","source":["تفريغ الرام والجيبيو"],"metadata":{"id":"uNoTlN2uMgGJ"}},{"cell_type":"code","source":["# @title\n","from piqa import SSIM\n","from tqdm import tqdm\n","import torch, gc\n","\n","model = ConditionalUNet().to(device)\n","optimizer = torch.optim.AdamW(model.parameters(), lr=2e-4)\n","criterion_l1 = nn.L1Loss()\n","criterion_ssim = SSIM(n_channels=1).to(device)\n","\n","train_loader = DataLoader(MatplotlibDataset(3000), batch_size=8, shuffle=True)\n","\n","print(\"🚀 بدء التدريب...\")\n","for epoch in range(15):\n"," model.train()\n"," pbar = tqdm(train_loader, desc=f\"Epoch {epoch+1}\")\n"," for src, pose, tgt in pbar:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n","\n"," optimizer.zero_grad()\n"," pred = model(src, pose)\n","\n"," loss = 0.7 * criterion_l1(pred, tgt) + 0.3 * (1 - criterion_ssim(pred, tgt))\n"," loss.backward()\n"," optimizer.step()\n","\n"," pbar.set_postfix(loss=f\"{loss.item():.4f}\")\n","\n"," # ✅ تفريغ الرام العادي + GPU بعد كل دورة\n"," gc.collect() # تفريغ الرام العادي (CPU)\n"," torch.cuda.empty_cache() # تفريغ ذاكرة الـ GPU\n"," print(f\"🧹 تم تفريغ الرام العادي وذاكرة الـ GPU بعد الدورة {epoch+1}\")\n","\n","MODEL_PATH = \"/content/drive/MyDrive/modelPersonCube1.pth\"\n","torch.save(model.state_dict(), MODEL_PATH)\n","print(f\"✅ تم التدريب وحفظ النموذج في Google Drive: {MODEL_PATH}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"h0pVCZyIMfzK","outputId":"ec83a133-8ae9-4294-985e-692b1cb0aeb2","cellView":"form","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["🚀 بدء التدريب...\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 1: 100%|██████████| 375/375 [04:31<00:00, 1.38it/s, loss=0.1098]\n"]},{"output_type":"stream","name":"stdout","text":["🧹 تم تفريغ الرام العادي وذاكرة الـ GPU بعد الدورة 1\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 2: 100%|██████████| 375/375 [04:26<00:00, 1.41it/s, loss=0.0609]\n"]},{"output_type":"stream","name":"stdout","text":["🧹 تم تفريغ الرام العادي وذاكرة الـ GPU بعد الدورة 2\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 3: 67%|██████▋ | 252/375 [18:55<4:48:23, 140.68s/it, loss=0.0377]"]}]},{"cell_type":"markdown","source":["# مع تفريغ الجيبيو"],"metadata":{"id":"XI4zfXeoL8ws"}},{"cell_type":"code","source":["# @title\n","from piqa import SSIM\n","from tqdm import tqdm\n","import torch\n","\n","model = ConditionalUNet().to(device)\n","optimizer = torch.optim.AdamW(model.parameters(), lr=2e-4)\n","criterion_l1 = nn.L1Loss()\n","criterion_ssim = SSIM(n_channels=1).to(device)\n","\n","train_loader = DataLoader(MatplotlibDataset(3000), batch_size=8, shuffle=True)\n","\n","print(\"🚀 بدء التدريب...\")\n","for epoch in range(15):\n"," model.train()\n"," pbar = tqdm(train_loader, desc=f\"Epoch {epoch+1}\")\n"," for src, pose, tgt in pbar:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n","\n"," optimizer.zero_grad()\n"," pred = model(src, pose)\n","\n"," loss = 0.7 * criterion_l1(pred, tgt) + 0.3 * (1 - criterion_ssim(pred, tgt))\n"," loss.backward()\n"," optimizer.step()\n","\n"," pbar.set_postfix(loss=f\"{loss.item():.4f}\")\n","\n"," # ✅ تفريغ الرام بعد كل دورة\n"," torch.cuda.empty_cache()\n"," print(f\"🧹 تم تفريغ ذاكرة الـ GPU بعد الدورة {epoch+1}\")\n","\n","MODEL_PATH = \"/content/drive/MyDrive/modelPersonCube1.pth\"\n","torch.save(model.state_dict(), MODEL_PATH)\n","print(f\"✅ تم التدريب وحفظ النموذج في Google Drive: {MODEL_PATH}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":426},"collapsed":true,"id":"dSUuR-LdL8jQ","executionInfo":{"status":"error","timestamp":1768657376545,"user_tz":-180,"elapsed":122010,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"3ddd6898-ad97-4035-aad0-4169593bc5c0","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["🚀 بدء التدريب...\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 1: 44%|████▍ | 165/375 [02:01<02:34, 1.36it/s, loss=0.1211]\n"]},{"output_type":"error","ename":"KeyboardInterrupt","evalue":"","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-1125154008.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0mpbar\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtqdm\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_loader\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdesc\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34mf\"Epoch {epoch+1}\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 16\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mpbar\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 17\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 18\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/tqdm/std.py\u001b[0m in \u001b[0;36m__iter__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1179\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1180\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1181\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0mobj\u001b[0m \u001b[0;32min\u001b[0m \u001b[0miterable\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1182\u001b[0m \u001b[0;32myield\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1183\u001b[0m \u001b[0;31m# Update and possibly print the progressbar.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py\u001b[0m in \u001b[0;36m__next__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 730\u001b[0m \u001b[0;31m# TODO(https://github.com/pytorch/pytorch/issues/76750)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 731\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[call-arg]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 732\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_next_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 733\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_num_yielded\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 734\u001b[0m if (\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py\u001b[0m in \u001b[0;36m_next_data\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_next_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 787\u001b[0m \u001b[0mindex\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_next_index\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# may raise StopIteration\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 788\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_dataset_fetcher\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfetch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# may raise StopIteration\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 789\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pin_memory\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 790\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_utils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpin_memory\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpin_memory\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pin_memory_device\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/_utils/fetch.py\u001b[0m in \u001b[0;36mfetch\u001b[0;34m(self, possibly_batched_index)\u001b[0m\n\u001b[1;32m 50\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__getitems__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 51\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 52\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0midx\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 53\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 54\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/tmp/ipython-input-3662352031.py\u001b[0m in \u001b[0;36m__getitem__\u001b[0;34m(self, idx)\u001b[0m\n\u001b[1;32m 21\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;31m# تحويل الصور إلى Tensors\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 23\u001b[0;31m \u001b[0msrc_tensor\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg_a\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 24\u001b[0m \u001b[0mtgt_tensor\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfrom_numpy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg_b\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munsqueeze\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 25\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torchvision/transforms/transforms.py\u001b[0m in \u001b[0;36m__call__\u001b[0;34m(self, img)\u001b[0m\n\u001b[1;32m 93\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__call__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mimg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 94\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mt\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransforms\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 95\u001b[0;31m \u001b[0mimg\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mt\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 96\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mimg\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 97\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_wrapped_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1773\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_compiled_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[misc]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1774\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1775\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_call_impl\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1776\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1777\u001b[0m \u001b[0;31m# torchrec tests the code consistency with the following code\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py\u001b[0m in \u001b[0;36m_call_impl\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 1784\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_pre_hooks\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0m_global_backward_hooks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1785\u001b[0m or _global_forward_hooks or _global_forward_pre_hooks):\n\u001b[0;32m-> 1786\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mforward_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1787\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1788\u001b[0m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torchvision/transforms/transforms.py\u001b[0m in \u001b[0;36mforward\u001b[0;34m(self, img)\u001b[0m\n\u001b[1;32m 1527\u001b[0m \u001b[0mret\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_params\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdegrees\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtranslate\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mscale\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshear\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mimg_size\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1528\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1529\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mF\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maffine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0mret\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minterpolation\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minterpolation\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfill\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfill\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcenter\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcenter\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1530\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1531\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__repr__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torchvision/transforms/functional.py\u001b[0m in \u001b[0;36maffine\u001b[0;34m(img, angle, translate, scale, shear, interpolation, fill, center)\u001b[0m\n\u001b[1;32m 1236\u001b[0m \u001b[0mtranslate_f\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;36m1.0\u001b[0m \u001b[0;34m*\u001b[0m \u001b[0mt\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mt\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mtranslate\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1237\u001b[0m \u001b[0mmatrix\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_get_inverse_affine_matrix\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcenter_f\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mangle\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtranslate_f\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mscale\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mshear\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1238\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mF_t\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maffine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmatrix\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmatrix\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minterpolation\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0minterpolation\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfill\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfill\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1239\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1240\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torchvision/transforms/_functional_tensor.py\u001b[0m in \u001b[0;36maffine\u001b[0;34m(img, matrix, interpolation, fill)\u001b[0m\n\u001b[1;32m 615\u001b[0m \u001b[0mshape\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mimg\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 616\u001b[0m \u001b[0;31m# grid will be generated on the same device as theta and img\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 617\u001b[0;31m \u001b[0mgrid\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_gen_affine_grid\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtheta\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mw\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mh\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mow\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moh\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mshape\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 618\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0m_apply_grid_transform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mgrid\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minterpolation\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfill\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfill\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 619\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torchvision/transforms/_functional_tensor.py\u001b[0m in \u001b[0;36m_gen_affine_grid\u001b[0;34m(theta, w, h, ow, oh)\u001b[0m\n\u001b[1;32m 599\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 600\u001b[0m \u001b[0mrescaled_theta\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtheta\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtranspose\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtensor\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0.5\u001b[0m \u001b[0;34m*\u001b[0m \u001b[0mw\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m0.5\u001b[0m \u001b[0;34m*\u001b[0m \u001b[0mh\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtheta\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdevice\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtheta\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 601\u001b[0;31m \u001b[0moutput_grid\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mbase_grid\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mview\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moh\u001b[0m \u001b[0;34m*\u001b[0m \u001b[0mow\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m3\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbmm\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrescaled_theta\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 602\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0moutput_grid\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mview\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moh\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mow\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 603\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mKeyboardInterrupt\u001b[0m: "]}]},{"cell_type":"code","source":["# @title\n","from piqa import SSIM\n","from tqdm import tqdm\n","\n","model = ConditionalUNet().to(device)\n","optimizer = torch.optim.AdamW(model.parameters(), lr=2e-4)\n","criterion_l1 = nn.L1Loss()\n","criterion_ssim = SSIM(n_channels=1).to(device)\n","\n","train_loader = DataLoader(MatplotlibDataset(3000), batch_size=8, shuffle=True)\n","\n","print(\"🚀 بدء التدريب...\")\n","for epoch in range(15):\n"," model.train()\n"," pbar = tqdm(train_loader, desc=f\"Epoch {epoch+1}\")\n"," for src, pose, tgt in pbar:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n","\n"," optimizer.zero_grad()\n"," pred = model(src, pose)\n","\n"," loss = 0.7 * criterion_l1(pred, tgt) + 0.3 * (1 - criterion_ssim(pred, tgt))\n"," loss.backward()\n"," optimizer.step()\n","\n"," pbar.set_postfix(loss=f\"{loss.item():.4f}\")\n","\n","#torch.save(model.state_dict(), \"model.pth\")\n","\n","MODEL_PATH = \"/content/drive/MyDrive/modelPersonCube1.pth\"\n","torch.save(model.state_dict(), MODEL_PATH)\n","print(f\"✅ تم التدريب وحفظ النموذج في Google Drive: {MODEL_PATH}\")\n","\n","#print(\"✅ تم التدريب وحفظ النموذج\")\n"],"metadata":{"id":"Byp6wZIiyMKf","colab":{"base_uri":"https://localhost:8080/","height":408},"executionInfo":{"status":"error","timestamp":1768657236832,"user_tz":-180,"elapsed":113209,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"634970c9-2810-4cc2-a996-7e53ed16550b","collapsed":true,"cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["🚀 بدء التدريب...\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 1: 34%|███▍ | 127/375 [01:52<03:40, 1.13it/s, loss=0.1698]\n"]},{"output_type":"error","ename":"KeyboardInterrupt","evalue":"","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-1698801690.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mpbar\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtqdm\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrain_loader\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdesc\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34mf\"Epoch {epoch+1}\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mpbar\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0msrc\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpose\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtgt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/tqdm/std.py\u001b[0m in \u001b[0;36m__iter__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1179\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1180\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1181\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0mobj\u001b[0m \u001b[0;32min\u001b[0m \u001b[0miterable\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1182\u001b[0m \u001b[0;32myield\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1183\u001b[0m \u001b[0;31m# Update and possibly print the progressbar.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py\u001b[0m in \u001b[0;36m__next__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 730\u001b[0m \u001b[0;31m# TODO(https://github.com/pytorch/pytorch/issues/76750)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 731\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# type: ignore[call-arg]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 732\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_next_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 733\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_num_yielded\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 734\u001b[0m if (\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/dataloader.py\u001b[0m in \u001b[0;36m_next_data\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_next_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 787\u001b[0m \u001b[0mindex\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_next_index\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# may raise StopIteration\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 788\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_dataset_fetcher\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfetch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# may raise StopIteration\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 789\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pin_memory\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 790\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_utils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpin_memory\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpin_memory\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pin_memory_device\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/torch/utils/data/_utils/fetch.py\u001b[0m in \u001b[0;36mfetch\u001b[0;34m(self, possibly_batched_index)\u001b[0m\n\u001b[1;32m 50\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__getitems__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 51\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 52\u001b[0;31m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0midx\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 53\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 54\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mpossibly_batched_index\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/tmp/ipython-input-3662352031.py\u001b[0m in \u001b[0;36m__getitem__\u001b[0;34m(self, idx)\u001b[0m\n\u001b[1;32m 18\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 19\u001b[0m \u001b[0mimg_a\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mgenerate_image_matplotlib\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0maz_a\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mel_a\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 20\u001b[0;31m \u001b[0mimg_b\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mgenerate_image_matplotlib\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0maz_b\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mel_b\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 21\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;31m# تحويل الصور إلى Tensors\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/tmp/ipython-input-3207950234.py\u001b[0m in \u001b[0;36mgenerate_image_matplotlib\u001b[0;34m(azimuth, elevation, image_size)\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mgenerate_image_matplotlib\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mazimuth\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0melevation\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mimage_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m128\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0mfig\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfigure\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfigsize\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdpi\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mimage_size\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 12\u001b[0;31m \u001b[0max\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0madd_subplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m111\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprojection\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'3d'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 13\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0;31m# هيكل الجسم\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/figure.py\u001b[0m in \u001b[0;36madd_subplot\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 766\u001b[0m \u001b[0margs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtuple\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmap\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 767\u001b[0m \u001b[0mprojection_class\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpkw\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_process_projection_requirements\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 768\u001b[0;31m \u001b[0max\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mprojection_class\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mpkw\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 769\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mprojection_class\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpkw\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 770\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_add_axes_internal\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0max\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/mpl_toolkits/mplot3d/axes3d.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, fig, rect, elev, azim, roll, shareview, sharez, proj_type, focal_length, box_aspect, computed_zorder, *args, **kwargs)\u001b[0m\n\u001b[1;32m 157\u001b[0m )\n\u001b[1;32m 158\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 159\u001b[0;31m super().__init__(\n\u001b[0m\u001b[1;32m 160\u001b[0m \u001b[0mfig\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrect\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mframeon\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbox_aspect\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbox_aspect\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 161\u001b[0m )\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axes/_base.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, fig, facecolor, frameon, sharex, sharey, label, xscale, yscale, box_aspect, forward_navigation_events, *args, **kwargs)\u001b[0m\n\u001b[1;32m 694\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 695\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_rasterization_zorder\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 696\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclear\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 697\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 698\u001b[0m \u001b[0;31m# funcs used to format x and y - fall back on major formatters\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/mpl_toolkits/mplot3d/axes3d.py\u001b[0m in \u001b[0;36mclear\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1346\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mclear\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1347\u001b[0m \u001b[0;31m# docstring inherited.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1348\u001b[0;31m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclear\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1349\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_focal_length\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1350\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_zmargin\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmpl\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrcParams\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'axes.zmargin'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axes/_base.py\u001b[0m in \u001b[0;36mclear\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1414\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcla\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1415\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1416\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__clear\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1417\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1418\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mcla\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axes/_base.py\u001b[0m in \u001b[0;36m__clear\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1381\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_axis_on\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1382\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1383\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mxaxis\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_clip_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpatch\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1384\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0myaxis\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_clip_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpatch\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1385\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axis.py\u001b[0m in \u001b[0;36mset_clip_path\u001b[0;34m(self, path, transform)\u001b[0m\n\u001b[1;32m 1126\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mset_clip_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransform\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1127\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_clip_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransform\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1128\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0mchild\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmajorTicks\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mminorTicks\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1129\u001b[0m \u001b[0mchild\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_clip_path\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransform\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1130\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstale\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axis.py\u001b[0m in \u001b[0;36m__get__\u001b[0;34m(self, instance, owner)\u001b[0m\n\u001b[1;32m 550\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 551\u001b[0m \u001b[0minstance\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mminorTicks\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 552\u001b[0;31m \u001b[0mtick\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0minstance\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_tick\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmajor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 553\u001b[0m \u001b[0minstance\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mminorTicks\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mtick\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 554\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0minstance\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mminorTicks\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axis.py\u001b[0m in \u001b[0;36m_get_tick\u001b[0;34m(self, major)\u001b[0m\n\u001b[1;32m 1601\u001b[0m \"_tick_class or reimplement _get_tick()\")\n\u001b[1;32m 1602\u001b[0m \u001b[0mtick_kw\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_major_tick_kw\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mmajor\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_minor_tick_kw\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1603\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_tick_class\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maxes\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmajor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmajor\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mtick_kw\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1604\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1605\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_get_tick_label_size\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0maxis_name\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/axis.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 377\u001b[0m \u001b[0;31m# the y loc is 3 points below the min of y axis\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 378\u001b[0m \u001b[0mtrans\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mva\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mha\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_text1_transform\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 379\u001b[0;31m self.label1.set(\n\u001b[0m\u001b[1;32m 380\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 381\u001b[0m \u001b[0mverticalalignment\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mva\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mhorizontalalignment\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransform\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtrans\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36m\u001b[0;34m(self, **kwargs)\u001b[0m\n\u001b[1;32m 144\u001b[0m \u001b[0;32mreturn\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 145\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 146\u001b[0;31m \u001b[0mcls\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mArtist\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 147\u001b[0m \u001b[0mcls\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__name__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m\"set\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 148\u001b[0m \u001b[0mcls\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__qualname__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34mf\"{cls.__qualname__}.set\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36mset\u001b[0;34m(self, **kwargs)\u001b[0m\n\u001b[1;32m 1239\u001b[0m \u001b[0;31m# Artist._update_set_signature_and_docstring() at the end of the\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1240\u001b[0m \u001b[0;31m# module.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1241\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_internal_update\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcbook\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnormalize_kwargs\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1242\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1243\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mcontextlib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontextmanager\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36m_internal_update\u001b[0;34m(self, kwargs)\u001b[0m\n\u001b[1;32m 1231\u001b[0m \u001b[0mThe\u001b[0m \u001b[0mlack\u001b[0m \u001b[0mof\u001b[0m \u001b[0mprenormalization\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mto\u001b[0m \u001b[0mmaintain\u001b[0m \u001b[0mbackcompatibility\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1232\u001b[0m \"\"\"\n\u001b[0;32m-> 1233\u001b[0;31m return self._update_props(\n\u001b[0m\u001b[1;32m 1234\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"{cls.__name__}.set() got an unexpected keyword argument \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1235\u001b[0m \"{prop_name!r}\")\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36m_update_props\u001b[0;34m(self, props, errfmt)\u001b[0m\n\u001b[1;32m 1207\u001b[0m \u001b[0merrfmt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcls\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprop_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1208\u001b[0m name=k)\n\u001b[0;32m-> 1209\u001b[0;31m \u001b[0mret\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mv\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1210\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mret\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1211\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpchanged\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36mset_transform\u001b[0;34m(self, t)\u001b[0m\n\u001b[1;32m 443\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_transform\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mt\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 444\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_transformSet\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 445\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpchanged\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 446\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstale\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 447\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/artist.py\u001b[0m in \u001b[0;36mpchanged\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 423\u001b[0m \u001b[0mremove_callback\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 424\u001b[0m \"\"\"\n\u001b[0;32m--> 425\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_callbacks\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprocess\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"pchanged\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 426\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 427\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mis_transform_set\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/matplotlib/cbook.py\u001b[0m in \u001b[0;36mprocess\u001b[0;34m(self, s, *args, **kwargs)\u001b[0m\n\u001b[1;32m 355\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_signals\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 356\u001b[0m \u001b[0m_api\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcheck_in_list\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_signals\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msignal\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0ms\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 357\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0mref\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcallbacks\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0ms\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m{\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalues\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 358\u001b[0m \u001b[0mfunc\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mref\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 359\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mfunc\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mKeyboardInterrupt\u001b[0m: "]},{"output_type":"display_data","data":{"text/plain":["
"]},"metadata":{}}]},{"cell_type":"code","source":["# @title\n","# استدعاء نفس تعريف الموديل\n","model = ConditionalUNet().to(device)\n","\n","# تحميل الأوزان التي حفظتها\n","model.load_state_dict(torch.load(\"model.pth\", map_location=device))\n","\n","# وضع الموديل في وضع التقييم\n","model.eval()\n","\n","print(\"✅ تم استدعاء الموديل بنجاح وهو جاهز للاستخدام\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"nXtQIUiPv5kL","executionInfo":{"status":"ok","timestamp":1768655181870,"user_tz":-180,"elapsed":310,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"695d876a-6b21-4891-845a-9f1fd53e2d03","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم استدعاء الموديل بنجاح وهو جاهز للاستخدام\n"]}]},{"cell_type":"code","source":["# @title\n","# استدعاء النموذج من Google Drive\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(\"/content/drive/MyDrive/modelPersonCube.pth\", map_location=device))\n","model.eval()\n","\n","print(\"✅ تم استدعاء المودل من Google Drive وهو جاهز للاستخدام\")\n"],"metadata":{"id":"JTkn7hpzzucL","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1768655178554,"user_tz":-180,"elapsed":855,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"1f2aa31f-6bb1-4f5a-9e6c-a8fd1f1f28ac","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم استدعاء المودل من Google Drive وهو جاهز للاستخدام\n"]}]},{"cell_type":"code","source":["# @title\n","import torch\n","import numpy as np\n","import gradio as gr\n","import matplotlib.pyplot as plt\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","# ✅ تحميل الموديل\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(\"model.pth\", map_location=device))\n","model.eval()\n","print(\"✅ الموديل جاهز للاستخدام عبر Gradio\")\n","\n","# دالة التنبؤ\n","def predict(img_np, az, el):\n"," if img_np is None:\n"," return None\n","\n"," # تحويل الصورة المدخلة إلى Tensor بالحجم المطلوب\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0]], dtype=torch.float32).to(device)\n","\n"," with torch.no_grad():\n"," pred = model(src, pose)\n","\n"," return (pred.squeeze().cpu().numpy() * 255).astype(np.uint8)\n","\n","# ✅ واجهة Gradio\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"), # صورة رمادية كمصفوفة NumPy\n"," gr.Slider(0, 360, 0, label=\"Azimuth زاوية\"),\n"," gr.Slider(-20, 50, 20, label=\"Elevation زاوية\")\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","\n","# تشغيل الواجهة\n","demo.launch(share=True, inline=False)\n","\n","# ✅ مثال سريع لتوليد صورة إدخال عشوائية واختبار الموديل مباشرة\n","az_test, el_test = np.random.uniform(0, 360), np.random.uniform(-20, 50)\n","img_test = generate_image_matplotlib(az_test, el_test)\n","\n","src = torch.from_numpy(img_test).unsqueeze(0).unsqueeze(0).to(device)\n","pose = torch.tensor([[az_test/180.0 - 1.0, el_test/45.0]], dtype=torch.float32).to(device)\n","\n","with torch.no_grad():\n"," pred_test = model(src, pose)\n","\n","plt.subplot(1,2,1)\n","plt.title(\"Input Image\")\n","plt.imshow(img_test, cmap=\"gray\")\n","plt.axis(\"off\")\n","\n","plt.subplot(1,2,2)\n","plt.title(\"Predicted View\")\n","plt.imshow(pred_test.squeeze().cpu().numpy(), cmap=\"gray\")\n","plt.axis(\"off\")\n","\n","plt.show()\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"tnxOObx8CTOf","executionInfo":{"status":"ok","timestamp":1768633014478,"user_tz":-180,"elapsed":4844,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"974079a5-a9de-4f21-ed79-40423ef862c8","cellView":"form","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ الموديل جاهز للاستخدام عبر Gradio\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"stream","name":"stdout","text":["Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n","Running on public URL: https://9ed3dea4027c1c9060.gradio.live\n","\n","This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"]},{"output_type":"display_data","data":{"text/plain":["
"],"image/png":"iVBORw0KGgoAAAANSUhEUgAAAgMAAAELCAYAAABEYIWnAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAWfVJREFUeJztnXmUZGV5/7+1V3V1V/f0Oj0rM8wgy4AgCCoMEBQnspxA4kFJSEARCQdUkqAx+R1FEo/KERKUcFBiIolKcMHtKOqRkzEOYCCEJcw4w8xAAzPTQ+9dVV37cn9/zHmvt2+/73vf9y5VvTyfc+ZM173v8tz7Vr3vs733hgzDMEAQBEEQxIol3G4BCIIgCIJoL6QMEARBEMQKh5QBgiAIgljhkDJAEARBECscUgYIgiAIYoVDygBBEARBrHBIGSAIgiCIFQ4pAwRBEASxwiFlgCAIgiBWOKQMEARBLDGOO+44XHfddebnX/3qVwiFQvjVr37VNpns2GX0g1AohM985jO+tkkcg5QBRR588EGEQiE888wz7RYFAFAsFvGZz3xG+cfPJovvfe97wQpGEMscNhewf8lkEieccAJuueUWjI2NtVs8LR599NG2La7f//73EQqF8LWvfU1Y5pe//CVCoRC+/OUvt1CylUm03QIQ7igWi7jjjjsAABdeeGF7hSGIFcjf/d3fYdOmTSiXy3j88cdx//3349FHH8Xu3bvR0dHRUlnOP/98lEolxONxrXqPPvoo7rvvvrYoBJdeeim6u7vx0EMP4UMf+hC3zEMPPYRIJIL3v//9AIBSqYRolJatICDPAEEQhAve85734JprrsGHPvQhPPjgg7j11lsxMjKCH/3oR8I6hUIhEFnC4TC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TOPPMM9HZ2WmG2R577DFUq1V85CMfmee+v/XWWx1le+655zAyMoJbb70VPT09885Z2xLRChkZ11xzDYBjngDGI488gnK5PC9EYMcwDDzyyCO4/PLLYRjGPDl37NiBbDZrzkPbt29Ho9HAk08+CeCYB2D79u3Yvn07du3aBQDYvXs3ZmdnsX37dmXZlxMUJvBIMpk04/eMVatWLYirAcDWrVsXHDvhhBPwne98JzD5VNiwYcO8z93d3Ugmk+jv719wfGpqat6xf/u3f8Pdd9+Nffv2oVarmcc3bdpk/v3aa69heHh4QYb1li1b5n0+ePAgDMPApz71KXzqU5/iyjo+Pr5gsiWIdnDffffhhBNOQDQaxdDQEN70pjctSOCLRqNYt27dvGMHDhxANps1k+LsjI+PAzj2uwEWzhsDAwNYtWqVVDYWsti2bZv6BbVYRsZpp52Gbdu24T/+4z/MfICHHnoI/f392LFjh7DexMQEZmdn8cADD+CBBx6QyvmWt7wFHR0d2LVrF3bs2IFdu3bhjjvuwOrVq3HvvfeiXC6bSsF5552nJPdyg5QBj0QiEV/bC4VCMAxjwXFrQqLf8K5BdF1W2b75zW/iuuuuwxVXXIGPf/zjGBwcRCQSwec//3lzMtKh2WwCAG677TbhJGBXIAiiXZx99tk466yzpGUSicQCBaHZbGJwcBDf+ta3uHXsxkU7aLWM11xzDT75yU/imWeewbp167Bz507ceOON0p0DbL645ppruPlHwO/yqGKxGM455xz8+te/xsGDB/HGG29g+/btGBoaQq1Ww1NPPYVdu3bhxBNPXBT3vx2QMtBCDhw4sODY/v37zV0CwDGvAi/EwDRwhoqrL2i+973vYfPmzebDQxi33377vHIbN27Ezp07USwW53kHDh48OK/c5s2bARz74b7rXe8KUHKCaB/HH388HnvsMZx77rlIpVLCchs3bgRwbN5gvw3gmEXM8zza+wCOub5lvyXRPNIKGa1cffXV+Ju/+Rs89NBD2LhxIxqNhjREABxTSLq6utBoNJTmi+3bt+POO+/EY489hv7+fpx44okIhUI45ZRTsGvXLuzatQuXXXaZsszLDcoZaCE//OEP58W8n376aT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9jyLuvQY2h6JzKeVE5pzKia6PdBARBtB37QhoOh33dM++EbLuWisfCqW3V67D36xTukC1KqjKqnlfd0iYqI8t8121TpBCo9K0iI6+tIMaQl8TnZgxV5bJ7xnTyBQBSBgiCCJhGo2EqAfbJyT5hNhqNBc9aV7WOZBacyjme9alyzm1/QbWjYs2KrrHV9dyck/XfinFq9RjqXpOVUCiEZrNJYQKCINoPW+CbzaZpwbAF3+7u5VlT1r9FVhRrm+dS1jnnJJuf51j/snN+XFMrr1flmoK+3uU+hjxlQPSyInae5RTIIGWAIIhAqdVqpoUSDocXbB1kEx77bE+GkikIQSCbOFt9rhUsx+tdjtfEgykMzPtm/U01Gg00m03U63WlcAEpAwRBBArzDDQajXkLud3y4VlAdpw8BTLvgQiZe1alLfs1+SGXrA17f27a0pFJdn1+3m9duVTaXO5jaJWdeQis3gwWIlBRoENG0Go2QRAEQRCLGnprIUEQBEGscEgZIAiCIIgVDikDBEEQBLHCIWWAIAiCIFY4pAwQBEEQxAqHlAGCIAiCWOGQMkAQBEEQKxxSBgiCIAhihUPKAEEQBEGscP4/40bTkE1x67oAAAAASUVORK5CYII=\n"},"metadata":{}}]},{"cell_type":"code","source":["# @title\n","import numpy as np\n","from PIL import Image\n","import os\n","\n","# تأكد أن الدالة generate_image_matplotlib معرفة مسبقاً هنا\n","\n","# مجلد لحفظ الصور\n","os.makedirs(\"generated_gray_images\", exist_ok=True)\n","\n","# قائمة زوايا للتجربة\n","angles = [\n"," (0, 20),\n"," (45, 20),\n"," (90, 20),\n"," (135, 20),\n"," (180, 20),\n"," (225, 20),\n"," (270, 20),\n"," (315, 20)\n","]\n","\n","# توليد الصور وحفظها\n","for i, (az, el) in enumerate(angles, start=1):\n"," img_array = generate_image_matplotlib(az, el, image_size=128) # صورة رمادية كـ numpy\n"," img_uint8 = (img_array * 255).astype(np.uint8) # تحويل إلى 0-255\n"," img = Image.fromarray(img_uint8, mode=\"L\") # تحويل إلى صورة PIL\n"," filename = f\"generated_gray_images/view_{i}_az{az}_el{el}.png\"\n"," img.save(filename)\n"," print(f\"✅ تم حفظ الصورة: {filename}\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"s6mFjkvCFVMY","executionInfo":{"status":"ok","timestamp":1768621958007,"user_tz":-180,"elapsed":1458,"user":{"displayName":"Jack Jeason","userId":"07787942258267825963"}},"outputId":"d86a7ee6-cf0c-462d-8185-d2eb523942bd","cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم حفظ الصورة: generated_gray_images/view_1_az0_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_2_az45_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_3_az90_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_4_az135_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_5_az180_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_6_az225_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_7_az270_el20.png\n","✅ تم حفظ الصورة: generated_gray_images/view_8_az315_el20.png\n"]}]},{"cell_type":"markdown","source":[],"metadata":{"id":"0QxDu0k7BBEw"}},{"cell_type":"code","source":[],"metadata":{"id":"4tJ2zCYgBA3C"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":[],"metadata":{"id":"VfigALwyBAvE"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":[],"metadata":{"id":"84yqQQEkBAmf"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# @title استدعاء المودل من درايف وتشغيل Gradio\n","import torch\n","import numpy as np\n","import gradio as gr\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","# ✅ استدعاء نفس تعريف الكلاس ConditionalUNet قبل هذا الجزء\n","# تأكد أنك نفذت الخلية التي فيها تعريف الكلاس ConditionalUNet\n","\n","# تحميل الأوزان من المسار الصحيح\n","MODEL_PATH = \"/content/drive/MyDrive/modelPersonCube.pth\"\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n","model.eval()\n","\n","print(\"✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\")\n","\n","# دالة التنبؤ\n","def predict(img_np, az, el):\n"," if img_np is None:\n"," return None\n","\n"," # تحويل الصورة المدخلة إلى Tensor بالحجم المطلوب\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0]], dtype=torch.float32).to(device)\n","\n"," with torch.no_grad():\n"," pred = model(src, pose)\n","\n"," return (pred.squeeze().cpu().numpy() * 255).astype(np.uint8)\n","\n","# ✅ واجهة Gradio\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"), # صورة رمادية كمصفوفة NumPy\n"," gr.Slider(0, 360, 0, label=\"Azimuth زاوية\"),\n"," gr.Slider(-20, 50, 20, label=\"Elevation زاوية\")\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","\n","# تشغيل الواجهة مع رابط خارجي\n","demo.launch(share=True)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":628},"id":"DE-qvGStz4uZ","executionInfo":{"status":"ok","timestamp":1768634254398,"user_tz":-180,"elapsed":8540,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"84241ce3-8993-44af-8f6a-fed4f33f63e3","collapsed":true,"cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\n","Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n","* Running on public URL: https://fea06b489639c55cb1.gradio.live\n","\n","This share link expires in 1 week. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"]},{"output_type":"display_data","data":{"text/plain":[""],"text/html":["
"]},"metadata":{}},{"output_type":"execute_result","data":{"text/plain":[]},"metadata":{},"execution_count":18}]},{"cell_type":"markdown","source":["### ***`from here`***"],"metadata":{"id":"CaN_0L0ZBBw6"}},{"cell_type":"code","source":["pip install gradio==4.44.0 gradio_client==0.15.0 --force-reinstall\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"id":"5oEzbxc8w0Fq","executionInfo":{"status":"ok","timestamp":1768655097424,"user_tz":-180,"elapsed":3989,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"e4d4646b-cbab-4734-b233-19bc9be466de"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Collecting gradio==4.44.0\n"," Downloading gradio-4.44.0-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio_client==0.15.0\n"," Using cached gradio_client-0.15.0-py3-none-any.whl.metadata (7.1 kB)\n","Collecting aiofiles<24.0,>=22.0 (from gradio==4.44.0)\n"," Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)\n","Collecting anyio<5.0,>=3.0 (from gradio==4.44.0)\n"," Using cached anyio-4.12.1-py3-none-any.whl.metadata (4.3 kB)\n","Collecting fastapi<1.0 (from gradio==4.44.0)\n"," Using cached fastapi-0.128.0-py3-none-any.whl.metadata (30 kB)\n","Collecting ffmpy (from gradio==4.44.0)\n"," Using cached ffmpy-1.0.0-py3-none-any.whl.metadata (3.0 kB)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","\u001b[31mERROR: Cannot install gradio==4.44.0 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.15.0\n"," gradio 4.44.0 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["pip install --upgrade gradio\n"],"metadata":{"collapsed":true,"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"YQ75YiiHxWAw","executionInfo":{"status":"ok","timestamp":1768655116660,"user_tz":-180,"elapsed":15931,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"55718edf-3594-4633-85a1-3b29909d8b24"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: gradio in /usr/local/lib/python3.12/dist-packages (4.44.1)\n","Collecting gradio\n"," Downloading gradio-6.3.0-py3-none-any.whl.metadata (16 kB)\n","Requirement already satisfied: aiofiles<25.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.12.1)\n","Requirement already satisfied: brotli>=1.1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (1.2.0)\n","Requirement already satisfied: fastapi<1.0,>=0.115.2 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio) (1.0.0)\n","Collecting gradio-client==2.0.3 (from gradio)\n"," Downloading gradio_client-2.0.3-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: groovy~=0.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.2)\n","Requirement already satisfied: httpx<1.0,>=0.24.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.28.1)\n","Requirement already satisfied: huggingface-hub<2.0,>=0.33.5 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.36.0)\n","Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.1.6)\n","Requirement already satisfied: markupsafe<4.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.1.5)\n","Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.4.1)\n","Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.11.5)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.12/dist-packages (from gradio) (25.0)\n","Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.2.2)\n","Requirement already satisfied: pillow<13.0,>=8.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (10.4.0)\n","Requirement already satisfied: pydantic<=3.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.12.3)\n","Requirement already satisfied: pydub in /usr/local/lib/python3.12/dist-packages (from gradio) (0.25.1)\n","Requirement already satisfied: python-multipart>=0.0.18 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.0.21)\n","Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (6.0.3)\n","Requirement already satisfied: safehttpx<0.2.0,>=0.1.7 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.7)\n","Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.10.0)\n","Requirement already satisfied: starlette<1.0,>=0.40.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.50.0)\n","Requirement already satisfied: tomlkit<0.14.0,>=0.12.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.12.0)\n","Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.21.1)\n","Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.15.0)\n","Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.40.0)\n","Requirement already satisfied: fsspec in /usr/local/lib/python3.12/dist-packages (from gradio-client==2.0.3->gradio) (2025.3.0)\n","Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.12/dist-packages (from anyio<5.0,>=3.0->gradio) (3.11)\n","Requirement already satisfied: annotated-doc>=0.0.2 in /usr/local/lib/python3.12/dist-packages (from fastapi<1.0,>=0.115.2->gradio) (0.0.4)\n","Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (2026.1.4)\n","Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (1.0.9)\n","Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx<1.0,>=0.24.1->gradio) (0.16.0)\n","Requirement already satisfied: filelock in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (3.20.2)\n","Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (2.32.4)\n","Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (4.67.1)\n","Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (1.2.0)\n","Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2.9.0.post0)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.2)\n","Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.3)\n","Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.7.0)\n","Requirement already satisfied: pydantic-core==2.41.4 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (2.41.4)\n","Requirement already satisfied: typing-inspection>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.4.2)\n","Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (8.3.1)\n","Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (1.5.4)\n","Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (13.9.4)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.17.0)\n","Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (4.0.0)\n","Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.19.2)\n","Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests->huggingface-hub<2.0,>=0.33.5->gradio) (3.4.4)\n","Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests->huggingface-hub<2.0,>=0.33.5->gradio) (2.5.0)\n","Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.12/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)\n","Downloading gradio-6.3.0-py3-none-any.whl (23.0 MB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m23.0/23.0 MB\u001b[0m \u001b[31m47.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hDownloading gradio_client-2.0.3-py3-none-any.whl (55 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m55.7/55.7 kB\u001b[0m \u001b[31m3.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hInstalling collected packages: gradio-client, gradio\n"," Attempting uninstall: gradio-client\n"," Found existing installation: gradio_client 1.3.0\n"," Uninstalling gradio_client-1.3.0:\n"," Successfully uninstalled gradio_client-1.3.0\n"," Attempting uninstall: gradio\n"," Found existing installation: gradio 4.44.1\n"," Uninstalling gradio-4.44.1:\n"," Successfully uninstalled gradio-4.44.1\n","Successfully installed gradio-6.3.0 gradio-client-2.0.3\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["gradio"]},"id":"155dc4fa4c034760a9ee81801d20c42f"}},"metadata":{}}]},{"cell_type":"code","source":["# @title نسخ النموذج من Google Drive إلى تخزين Colab المحلي\n","import os\n","\n","# مسار النموذج في درايف\n","drive_model_path = \"/content/drive/MyDrive/modelPersonCube.pth\"\n","\n","# مسار النسخة في تخزين Colab\n","colab_model_path = \"/content/model.pth\"\n","\n","# نسخ الملف\n","if os.path.exists(drive_model_path):\n"," !cp \"$drive_model_path\" \"$colab_model_path\"\n"," print(f\"✅ تم نسخ النموذج من درايف إلى: {colab_model_path}\")\n","else:\n"," print(\"⚠️ الملف غير موجود في المسار المحدد داخل درايف\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"cellView":"form","id":"OOzwEE5nDVt4","executionInfo":{"status":"ok","timestamp":1768655035131,"user_tz":-180,"elapsed":326,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"0884c83f-4ebc-4343-ff5f-26e80eea13dd"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم نسخ النموذج من درايف إلى: /content/model.pth\n"]}]},{"cell_type":"code","source":[],"metadata":{"id":"-GfRM9_YynbB"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["مع العمق او المسافةZ"],"metadata":{"id":"0WMRZcNAJ_aJ"}},{"cell_type":"code","source":["# الخلية الأولى\n","import os, torch\n","\n","print(\"✅ GPU:\", torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"غير متاح\")\n","\n","# تنظيف أي نسخ قديمة\n","!pip uninstall -y pillow gradio gradio_client tqdm websockets -q\n","\n","# تثبيت المكتبات الأساسية بإصدارات مستقرة وحديثة\n","!pip install numpy==1.26.4 pillow==10.3.0 matplotlib==3.9.2 torchvision==0.19.1 piqa==1.3.1 -q\n","\n","# تثبيت tqdm و websockets بأحدث نسخة لتفادي التحذيرات\n","!pip install tqdm>=4.67 websockets>=14.0 -q\n","\n","# تثبيت Gradio مع النسخة الصحيحة من gradio-client\n","!pip install gradio==4.44.1 gradio-client==1.3.0 -q\n","\n","# ربط Google Drive\n","from google.colab import drive\n","drive.mount('/content/drive', force_remount=True)\n","\n","# إنشاء مجلد البيانات\n","DRIVE_ROOT = \"/content/drive/MyDrive/drawperson_dataset_with_depth\"\n","os.makedirs(DRIVE_ROOT, exist_ok=True)\n","\n","# اختبار سريع: طباعة نسخ المكتبات\n","import numpy, PIL, matplotlib, torchvision, gradio, tqdm, websockets\n","print(\"numpy:\", numpy.__version__)\n","print(\"pillow:\", PIL.__version__)\n","print(\"matplotlib:\", matplotlib.__version__)\n","print(\"torchvision:\", torchvision.__version__)\n","print(\"gradio:\", gradio.__version__)\n","print(\"tqdm:\", tqdm.__version__)\n","print(\"websockets:\", websockets.__version__)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":931},"collapsed":true,"id":"fXpblHB0ZKZI","executionInfo":{"status":"error","timestamp":1768763298638,"user_tz":-180,"elapsed":37233,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"4e009a44-def2-4867-c631-0baca74b98b6"},"execution_count":1,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU: Tesla T4\n","\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","torchtune 0.6.1 requires tqdm, which is not installed.\n","segregation 2.5.3 requires tqdm, which is not installed.\n","prophet 1.2.1 requires tqdm>=4.36.1, which is not installed.\n","dopamine-rl 4.1.2 requires tqdm>=4.64.1, which is not installed.\n","bigframes 2.31.0 requires rich<14,>=12.4.4, but you have rich 14.2.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0m\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","datasets 4.0.0 requires fsspec[http]<=2025.3.0,>=2023.1.0, but you have fsspec 2026.1.0 which is incompatible.\n","transformers 4.57.3 requires huggingface-hub<1.0,>=0.34.0, but you have huggingface-hub 1.3.2 which is incompatible.\n","shap 0.50.0 requires numpy>=2, but you have numpy 1.26.4 which is incompatible.\n","tobler 0.13.0 requires numpy>=2.0, but you have numpy 1.26.4 which is incompatible.\n","google-adk 1.21.0 requires fastapi<0.124.0,>=0.115.0, but you have fastapi 0.128.0 which is incompatible.\n","google-adk 1.21.0 requires websockets<16.0.0,>=15.0.1, but you have websockets 16.0 which is incompatible.\n","google-genai 1.55.0 requires websockets<15.1.0,>=13.0.0, but you have websockets 16.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0m\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","dataproc-spark-connect 1.0.1 requires websockets>=14.0, but you have websockets 12.0 which is incompatible.\n","google-adk 1.21.0 requires fastapi<0.124.0,>=0.115.0, but you have fastapi 0.128.0 which is incompatible.\n","google-adk 1.21.0 requires websockets<16.0.0,>=15.0.1, but you have websockets 12.0 which is incompatible.\n","google-genai 1.55.0 requires websockets<15.1.0,>=13.0.0, but you have websockets 12.0 which is incompatible.\n","yfinance 0.2.66 requires websockets>=13.0, but you have websockets 12.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0mMounted at /content/drive\n"]},{"output_type":"error","ename":"ImportError","evalue":"cannot import name 'HfFolder' from 'huggingface_hub' (/usr/local/lib/python3.12/dist-packages/huggingface_hub/__init__.py)","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-3927201964.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 25\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 26\u001b[0m \u001b[0;31m# اختبار سريع: طباعة نسخ المكتبات\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 27\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mnumpy\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mPIL\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmatplotlib\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtorchvision\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtqdm\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwebsockets\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 28\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"numpy:\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnumpy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__version__\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 29\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"pillow:\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mPIL\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__version__\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mjson\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_simple_templates\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mimage_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprocessing_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/_simple_templates/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpledropdown\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleDropdown\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpleimage\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpletextbox\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleTextbox\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0m__all__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m\"SimpleDropdown\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"SimpleTextbox\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"SimpleImage\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/_simple_templates/simpledropdown.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mtyping\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mTYPE_CHECKING\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mAny\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mCallable\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mSequence\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 6\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbase\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mFormComponent\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 7\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevents\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEvents\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mannotated_image\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mAnnotatedImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maudio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mAudio\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m from gradio.components.base import (\n\u001b[1;32m 4\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mFormComponent\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/annotated_image.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mprocessing_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 14\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbase\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 15\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mFileData\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 16\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevents\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEvents\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/base.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 18\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 19\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 20\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mblocks\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mBlock\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mBlockContext\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 21\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponent_meta\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponentMeta\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mBaseModel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mDeveloperPath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioDataModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 37\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio_client\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocumentation\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdocument\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 38\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 39\u001b[0;31m from gradio import (\n\u001b[0m\u001b[1;32m 40\u001b[0m \u001b[0manalytics\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 41\u001b[0m \u001b[0mcomponents\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/networking.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mhttpx\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mroutes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mApp\u001b[0m \u001b[0;31m# HACK: to avoid circular import # noqa: F401\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtunneling\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mTunnel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/routes.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 67\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 69\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mranged_response\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mroute_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwasm_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 70\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontext\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mContext\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 71\u001b[0m from gradio.data_classes import (\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 51\u001b[0m )\n\u001b[1;32m 52\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexceptions\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mError\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 53\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhelpers\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEventData\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 54\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstate_holder\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSessionState\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/helpers.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 24\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio_client\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocumentation\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdocument\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 25\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 26\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mcomponents\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moauth\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprocessing_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mroutes\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwasm_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 27\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontext\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mContext\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mLocalContext\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mget_blocks_context\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 28\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mGradioModel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioRootModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/oauth.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mfastapi\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mfastapi\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mresponses\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mRedirectResponse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mhuggingface_hub\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mHfFolder\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwhoami\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0mutils\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mget_space\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mImportError\u001b[0m: cannot import name 'HfFolder' from 'huggingface_hub' (/usr/local/lib/python3.12/dist-packages/huggingface_hub/__init__.py)","","\u001b[0;31m---------------------------------------------------------------------------\u001b[0;32m\nNOTE: If your import is failing due to a missing package, you can\nmanually install dependencies using either !pip or !apt.\n\nTo view examples of installing some common dependencies, click the\n\"Open Examples\" button below.\n\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n"],"errorDetails":{"actions":[{"action":"open_url","actionText":"Open Examples","url":"/notebooks/snippets/importing_libraries.ipynb"}]}}]},{"cell_type":"code","source":["# @title\n","# الخلية الأولى\n","import os, torch\n","\n","print(\"✅ GPU:\", torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"غير متاح\")\n","\n","# تثبيت الحزم الأساسية مع إصدارات متوافقة\n","!pip uninstall -y pillow gradio gradio_client -q\n","\n","!pip install piqa==1.3.1 tqdm==4.66.2 -q\n","!pip install numpy==1.26.4 pillow==10.3.0 matplotlib==3.9.2 torchvision==0.19.1 -q\n","\n","# تثبيت Gradio مع النسخة الصحيحة من gradio-client\n","!pip install gradio==4.44.1 gradio-client==1.3.0 -q\n","\n","# ربط Google Drive\n","from google.colab import drive\n","drive.mount('/content/drive', force_remount=True)\n","\n","# إنشاء مجلد البيانات\n","DRIVE_ROOT = \"/content/drive/MyDrive/drawperson_dataset_with_depth\"\n","os.makedirs(DRIVE_ROOT, exist_ok=True)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"cellView":"form","id":"pq83pRubYdg0","executionInfo":{"status":"ok","timestamp":1768761363740,"user_tz":-180,"elapsed":172883,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"691c7397-4356-4e0b-851e-e725bc9e46fa"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU: Tesla T4\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.6/57.6 kB\u001b[0m \u001b[31m3.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.3/78.3 kB\u001b[0m \u001b[31m6.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","datasets 4.0.0 requires tqdm>=4.66.3, but you have tqdm 4.66.2 which is incompatible.\n","dataproc-spark-connect 1.0.1 requires tqdm>=4.67, but you have tqdm 4.66.2 which is incompatible.\n","dataproc-spark-connect 1.0.1 requires websockets>=14.0, but you have websockets 12.0 which is incompatible.\n","tobler 0.13.0 requires tqdm>=4.67, but you have tqdm 4.66.2 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m4.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.0/18.0 MB\u001b[0m \u001b[31m107.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.3/8.3 MB\u001b[0m \u001b[31m56.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.0/7.0 MB\u001b[0m \u001b[31m20.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m797.0/797.0 MB\u001b[0m \u001b[31m827.6 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m410.6/410.6 MB\u001b[0m \u001b[31m3.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m14.1/14.1 MB\u001b[0m \u001b[31m63.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m23.7/23.7 MB\u001b[0m \u001b[31m104.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m823.6/823.6 kB\u001b[0m \u001b[31m56.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m664.8/664.8 MB\u001b[0m \u001b[31m1.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m121.6/121.6 MB\u001b[0m \u001b[31m8.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m56.5/56.5 MB\u001b[0m \u001b[31m15.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m124.2/124.2 MB\u001b[0m \u001b[31m8.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m196.0/196.0 MB\u001b[0m \u001b[31m7.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m176.2/176.2 MB\u001b[0m \u001b[31m3.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m99.1/99.1 kB\u001b[0m \u001b[31m9.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m209.5/209.5 MB\u001b[0m \u001b[31m6.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25h\u001b[31mERROR: Operation cancelled by user\u001b[0m\u001b[31m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0mTraceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 179, in exc_logging_wrapper\n"," status = run_func(*args)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/req_command.py\", line 67, in wrapper\n"," return func(self, options, args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/commands/install.py\", line 447, in run\n"," conflicts = self._determine_conflicts(to_install)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/commands/install.py\", line 578, in _determine_conflicts\n"," return check_install_conflicts(to_install)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/operations/check.py\", line 101, in check_install_conflicts\n"," package_set, _ = create_package_set_from_installed()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/operations/check.py\", line 42, in create_package_set_from_installed\n"," dependencies = list(dist.iter_dependencies())\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/metadata/importlib/_dists.py\", line 219, in iter_dependencies\n"," for req_string in self.metadata.get_all(\"Requires-Dist\", []):\n"," ^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/functools.py\", line 998, in __get__\n"," val = self.func(instance)\n"," ^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/metadata/base.py\", line 394, in metadata\n"," metadata = self._metadata_impl()\n"," ^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/metadata/importlib/_dists.py\", line 209, in _metadata_impl\n"," return cast(email.message.Message, self._dist.metadata)\n"," ^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/importlib/metadata/__init__.py\", line 452, in metadata\n"," return _adapters.Message(email.message_from_string(text))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/email/__init__.py\", line 37, in message_from_string\n"," return Parser(*args, **kws).parsestr(s)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/email/parser.py\", line 64, in parsestr\n"," return self.parse(StringIO(text), headersonly=headersonly)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/lib/python3.12/email/parser.py\", line 53, in parse\n"," feedparser.feed(data)\n"," File \"/usr/lib/python3.12/email/feedparser.py\", line 173, in feed\n"," self._input.push(data)\n"," File \"/usr/lib/python3.12/email/feedparser.py\", line 109, in push\n"," parts = self._partial.readlines()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^\n","KeyboardInterrupt\n","\n","During handling of the above exception, another exception occurred:\n","\n","Traceback (most recent call last):\n"," File \"/usr/local/bin/pip3\", line 10, in \n"," sys.exit(main())\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/main.py\", line 80, in main\n"," return command.main(cmd_args)\n"," ^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 100, in main\n"," return self._main(args)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 232, in _main\n"," return run(options, args)\n"," ^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/cli/base_command.py\", line 215, in exc_logging_wrapper\n"," logger.critical(\"Operation cancelled by user\")\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1586, in critical\n"," self._log(CRITICAL, msg, args, **kwargs)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1684, in _log\n"," self.handle(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1700, in handle\n"," self.callHandlers(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1762, in callHandlers\n"," hdlr.handle(record)\n"," File \"/usr/lib/python3.12/logging/__init__.py\", line 1028, in handle\n"," self.emit(record)\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_internal/utils/logging.py\", line 169, in emit\n"," renderable = self.render_message(record, message)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_vendor/rich/logging.py\", line 189, in render_message\n"," message_text = highlighter(message_text)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_vendor/rich/highlighter.py\", line 38, in __call__\n"," self.highlight(highlight_text)\n"," File \"/usr/local/lib/python3.12/dist-packages/pip/_vendor/rich/highlighter.py\", line 57, in highlight\n"," def highlight(self, text: Text) -> None:\n","\n","KeyboardInterrupt\n","^C\n","Mounted at /content/drive\n"]}]},{"cell_type":"code","source":["# الخلية الأولى\n","import os, torch\n","\n","print(\"✅ GPU:\", torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"غير متاح\")\n","\n","!pip install piqa==1.3.1 gradio==4.44.1 tqdm -q\n","!pip install -U numpy pillow matplotlib torchvision -q\n","\n","from google.colab import drive\n","drive.mount('/content/drive', force_remount=True)\n","DRIVE_ROOT = \"/content/drive/MyDrive/drawperson_dataset_with_depth\"\n","os.makedirs(DRIVE_ROOT, exist_ok=True)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"bYYTEI_rynPa","executionInfo":{"status":"ok","timestamp":1768763511057,"user_tz":-180,"elapsed":199913,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"5aa852c3-4bff-45c0-be7a-18c29df35376","collapsed":true},"execution_count":2,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ GPU: Tesla T4\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m706.8/706.8 MB\u001b[0m \u001b[31m1.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m322.3/322.3 MB\u001b[0m \u001b[31m1.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25h\u001b[33m WARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33m WARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Ignoring invalid distribution ~vidia-cudnn-cu12 (/usr/local/lib/python3.12/dist-packages)\u001b[0m\u001b[33m\n","\u001b[0m\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","gradio 4.44.1 requires pillow<11.0,>=8.0, but you have pillow 12.1.0 which is incompatible.\n","google-colab 1.0.0 requires pandas==2.2.2, but you have pandas 2.3.3 which is incompatible.\n","google-colab 1.0.0 requires requests==2.32.4, but you have requests 2.32.5 which is incompatible.\n","opencv-contrib-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","numba 0.60.0 requires numpy<2.1,>=1.22, but you have numpy 2.4.1 which is incompatible.\n","datasets 4.0.0 requires fsspec[http]<=2025.3.0,>=2023.1.0, but you have fsspec 2026.1.0 which is incompatible.\n","torchaudio 2.9.0+cu126 requires torch==2.9.0, but you have torch 2.9.1 which is incompatible.\n","tensorflow 2.19.0 requires numpy<2.2.0,>=1.26.0, but you have numpy 2.4.1 which is incompatible.\n","opencv-python-headless 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","transformers 4.57.3 requires huggingface-hub<1.0,>=0.34.0, but you have huggingface-hub 1.3.2 which is incompatible.\n","opencv-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","bigframes 2.31.0 requires rich<14,>=12.4.4, but you have rich 14.2.0 which is incompatible.\n","yfinance 0.2.66 requires websockets>=13.0, but you have websockets 12.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0mMounted at /content/drive\n"]}]},{"cell_type":"code","source":["# الخلية الثانية\n","import numpy as np, matplotlib\n","matplotlib.use(\"Agg\")\n","import matplotlib.pyplot as plt\n","from mpl_toolkits.mplot3d import Axes3D\n","from PIL import Image\n","import io, gc\n","\n","IMAGE_SIZE = 128\n","\n","def generate_image_matplotlib(azimuth, elevation, distance=1.0, image_size=128):\n"," fig = plt.figure(figsize=(2, 2), dpi=image_size / 2)\n"," ax = fig.add_subplot(111, projection='3d')\n","\n"," body_parts = {\n"," \"torso\": {\"pos\":[0,0,0.7],\"size\":[0.6,0.4,1.0]},\n"," \"head\": {\"pos\":[0,0,1.6],\"size\":[0.3,0.3,0.3]},\n"," \"l_arm\": {\"pos\":[-0.5,0,1.0],\"size\":[0.2,0.2,0.7]},\n"," \"r_arm\": {\"pos\":[0.5,0,1.0],\"size\":[0.2,0.2,0.7]},\n"," \"l_leg\": {\"pos\":[-0.25,0,-0.3],\"size\":[0.25,0.25,0.8]},\n"," \"r_leg\": {\"pos\":[0.25,0,-0.3],\"size\":[0.25,0.25,0.8]},\n"," }\n"," for _,d in body_parts.items():\n"," x,y,z = d[\"pos\"]; dx,dy,dz = d[\"size\"]\n"," ax.bar3d(x-dx/2,y-dy/2,z-dz/2,dx,dy,dz,color='grey')\n","\n"," ax.view_init(elev=elevation, azim=azimuth)\n","\n"," # التحكم في العمق عبر تغيير حدود المحاور (Zoom In/Out)\n"," scale = 1.5 * distance\n"," ax.set_xlim(-scale, scale)\n"," ax.set_ylim(-scale, scale)\n"," ax.set_zlim(-scale, 2.0 * distance)\n","\n"," ax.set_axis_off()\n"," plt.tight_layout(pad=0)\n","\n"," buf = io.BytesIO()\n"," fig.savefig(buf, format='png')\n"," buf.seek(0)\n"," img = Image.open(buf).convert('L').resize((image_size,image_size), Image.LANCZOS)\n"," arr = np.array(img, dtype=np.uint8)\n"," plt.close(fig); buf.close(); gc.collect()\n"," return arr\n"],"metadata":{"id":"QxJFm0TPyrQ3","executionInfo":{"status":"ok","timestamp":1768763515912,"user_tz":-180,"elapsed":57,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}}},"execution_count":4,"outputs":[]},{"cell_type":"code","source":["# الخلية الثالثة\n","import json\n","from tqdm import tqdm\n","\n","TOTAL_SAMPLES = 5000 # حجم البيانات\n","IMG_SIZE = IMAGE_SIZE\n","DATA_DIR = DRIVE_ROOT\n","\n","IMAGES_PATH = os.path.join(DATA_DIR, \"images.memmap\")\n","POSES_PATH = os.path.join(DATA_DIR, \"poses.memmap\")\n","META_PATH = os.path.join(DATA_DIR, \"meta.json\")\n","\n","images_mm = np.memmap(IMAGES_PATH, dtype=np.uint8, mode='w+', shape=(TOTAL_SAMPLES, IMG_SIZE, IMG_SIZE))\n","poses_mm = np.memmap(POSES_PATH, dtype=np.float32, mode='w+', shape=(TOTAL_SAMPLES, 3))\n","\n","for i in tqdm(range(TOTAL_SAMPLES)):\n"," az = np.random.uniform(0,360)\n"," el = np.random.uniform(-20,50)\n"," dist = np.random.uniform(0.8, 1.5)\n"," img = generate_image_matplotlib(az, el, dist, IMG_SIZE)\n"," images_mm[i] = img\n"," poses_mm[i] = [az/180.0 - 1.0, el/45.0, dist/1.5] # تطبيع القيم\n","\n","images_mm.flush(); poses_mm.flush()\n","meta = {\"total_samples\":TOTAL_SAMPLES,\"image_size\":IMG_SIZE,\"images_path\":IMAGES_PATH,\"poses_path\":POSES_PATH}\n","with open(META_PATH,\"w\") as f: json.dump(meta,f)\n","del images_mm, poses_mm\n","print(f\"✅ تم توليد {TOTAL_SAMPLES} صورة وحفظها\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"pZiNAdohznD1","outputId":"f435d341-09ad-4d1e-a070-d898934cb162","executionInfo":{"status":"ok","timestamp":1768758593990,"user_tz":-180,"elapsed":156656,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}}},"execution_count":null,"outputs":[{"output_type":"stream","name":"stderr","text":["100%|██████████| 5000/5000 [09:52<00:00, 8.45it/s]\n"]},{"output_type":"stream","name":"stdout","text":["✅ تم توليد 5000 صورة وحفظها\n"]}]},{"cell_type":"code","source":["!pip uninstall -y pillow\n","!pip install pillow==10.3.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":252},"id":"g7P9kBeI2Vr4","executionInfo":{"status":"ok","timestamp":1768761011217,"user_tz":-180,"elapsed":7162,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"8c681e34-aaf8-410e-9a8a-019b74f4d6f0","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Found existing installation: pillow 12.1.0\n","Uninstalling pillow-12.1.0:\n"," Successfully uninstalled pillow-12.1.0\n","Collecting pillow==10.3.0\n"," Using cached pillow-10.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.2 kB)\n","Using cached pillow-10.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.5 MB)\n","Installing collected packages: pillow\n","Successfully installed pillow-10.3.0\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["PIL"]},"id":"0480e78707b245db8ba954102a199079"}},"metadata":{}}]},{"cell_type":"code","source":["# الخلية الرابعة\n","import torch\n","import torch.nn as nn\n","from torch.utils.data import Dataset, DataLoader, random_split\n","from torchvision import transforms\n","import json # ✅ إضافة هذا السطر\n","\n","class DriveDataset(Dataset):\n"," def __init__(self, images_path, poses_path, length, image_size=128, augment=False):\n"," self.images_mm = np.memmap(images_path, dtype=np.uint8, mode='r', shape=(length,image_size,image_size))\n"," self.poses_mm = np.memmap(poses_path, dtype=np.float32, mode='r', shape=(length,3))\n"," self.length = length\n"," self.to_tensor = transforms.ToTensor()\n"," self.augment = augment\n"," self.aug = transforms.Compose([\n"," transforms.RandomRotation(8, fill=0),\n"," transforms.RandomResizedCrop(image_size, scale=(0.95,1.0)),\n"," ])\n","\n"," def __len__(self): return self.length\n"," def __getitem__(self, idx):\n"," img_a = self.images_mm[idx]\n"," j = np.random.randint(0,self.length)\n"," img_b = self.images_mm[j]; pose_b = self.poses_mm[j]\n"," img_a = Image.fromarray(img_a)\n"," if self.augment: img_a = self.aug(img_a)\n"," src = self.to_tensor(img_a)\n"," tgt = torch.from_numpy(img_b.astype(np.float32)/255.0).unsqueeze(0)\n"," pose = torch.from_numpy(pose_b.astype(np.float32))\n"," return src, pose, tgt\n","\n","# تحميل الميتا وتقسيم البيانات\n","with open(os.path.join(DRIVE_ROOT,\"meta.json\")) as f: meta = json.load(f)\n","length = meta[\"total_samples\"]\n","images_path = meta[\"images_path\"]\n","poses_path = meta[\"poses_path\"]\n","img_size = meta[\"image_size\"]\n","\n","dataset = DriveDataset(images_path, poses_path, length, img_size, augment=True)\n","train_len = int(0.7*length)\n","val_len = int(0.1*length)\n","test_len = length - train_len - val_len\n","train_set, val_set, test_set = random_split(dataset, [train_len,val_len,test_len])\n","\n","train_loader = DataLoader(train_set, batch_size=16, shuffle=True, num_workers=2, pin_memory=True)\n","val_loader = DataLoader(val_set, batch_size=16, shuffle=False)\n","test_loader = DataLoader(test_set, batch_size=16, shuffle=False)\n"],"metadata":{"id":"cESYwrJ1ztiH","executionInfo":{"status":"ok","timestamp":1768763521778,"user_tz":-180,"elapsed":83,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}}},"execution_count":5,"outputs":[]},{"cell_type":"code","source":["# الخلية الخامسة\n","class ConditionalUNet(nn.Module):\n"," def __init__(self):\n"," super().__init__()\n"," def cb(i,o): return nn.Sequential(\n"," nn.Conv2d(i,o,3,1,1), nn.BatchNorm2d(o), nn.ReLU(True),\n"," nn.Conv2d(o,o,3,1,1), nn.BatchNorm2d(o), nn.ReLU(True))\n"," self.enc1,self.enc2,self.enc3,self.enc4 = cb(1,64),cb(64,128),cb(128,256),cb(256,512)\n"," self.pool = nn.MaxPool2d(2)\n"," self.bottleneck = cb(512,1024)\n"," self.pose_fc = nn.Linear(3,1024*8*8) # الآن 3 قيم (az, el, dist)\n"," self.up4,self.dec4 = nn.ConvTranspose2d(2048,512,2,2),cb(1024,512)\n"," self.up3,self.dec3 = nn.ConvTranspose2d(512,256,2,2),cb(512,256)\n"," self.up2,self.dec2 = nn.ConvTranspose2d(256,128,2,2),cb(256,128)\n"," self.up1,self.dec1 = nn.ConvTranspose2d(128,64,2,2),cb(128,64)\n"," self.out = nn.Sequential(nn.Conv2d(64,1,1),nn.Sigmoid())\n"," def forward(self,img,pose):\n"," s1=self.enc1(img); s2=self.enc2(self.pool(s1)); s3=self.enc3(self.pool(s2)); s4=self.enc4(self.pool(s3))\n"," b=self.bottleneck(self.pool(s4)); p=self.pose_fc(pose).view(-1,1024,8,8)\n"," c4=self.dec4(torch.cat([self.up4(torch.cat([b,p],1)),s4],1))\n"," c3=self.dec3(torch.cat([self.up3(c4),s3],1))\n"," c2=self.dec2(torch.cat([self.up2(c3),s2],1))\n"," c1=self.dec1(torch.cat([self.up1(c2),s1],1))\n"," return self.out(c1)\n"],"metadata":{"id":"iUeepW38zwmX","collapsed":true,"colab":{"base_uri":"https://localhost:8080/","height":211},"executionInfo":{"status":"error","timestamp":1768763239285,"user_tz":-180,"elapsed":14,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"e5d56cd1-dcd9-447c-b033-e776868e2f53"},"execution_count":4,"outputs":[{"output_type":"error","ename":"NameError","evalue":"name 'nn' is not defined","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-498293845.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# الخلية الخامسة\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;32mclass\u001b[0m \u001b[0mConditionalUNet\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnn\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mModule\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m def cb(i,o): return nn.Sequential(\n","\u001b[0;31mNameError\u001b[0m: name 'nn' is not defined"]}]},{"cell_type":"code","source":["# الخلية السادسة\n","import gc\n","from piqa import SSIM\n","from tqdm import tqdm\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","model = ConditionalUNet().to(device)\n","opt = torch.optim.AdamW(model.parameters(), lr=2e-4, weight_decay=1e-4)\n","criterion_l1 = nn.L1Loss()\n","criterion_ssim = SSIM(n_channels=1).to(device)\n","\n","EPOCHS = 15\n","best_val_loss = float(\"inf\")\n","\n","history_train, history_val = [], []\n","\n","for epoch in range(EPOCHS):\n"," # تدريب\n"," model.train()\n"," train_loss = 0.0\n"," pbar = tqdm(train_loader, desc=f\"Epoch {epoch+1}/{EPOCHS}\")\n"," for src, pose, tgt in pbar:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n"," opt.zero_grad(set_to_none=True)\n"," pred = model(src, pose)\n"," loss = 0.7*criterion_l1(pred, tgt) + 0.3*(1-criterion_ssim(pred, tgt))\n"," loss.backward(); opt.step()\n"," train_loss += loss.item()\n"," pbar.set_postfix(loss=f\"{loss.item():.4f}\", lr=f\"{opt.param_groups[0]['lr']:.6f}\")\n"," train_loss /= len(train_loader)\n","\n"," # تحقق\n"," model.eval()\n"," val_loss = 0.0\n"," with torch.no_grad():\n"," for src, pose, tgt in val_loader:\n"," src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n"," pred = model(src, pose)\n"," loss = 0.7*criterion_l1(pred, tgt) + 0.3*(1-criterion_ssim(pred, tgt))\n"," val_loss += loss.item()\n"," val_loss /= len(val_loader)\n","\n"," history_train.append(train_loss)\n"," history_val.append(val_loss)\n","\n"," print(f\"📉 الدورة {epoch+1}/{EPOCHS}: خسارة التدريب={train_loss:.4f}, خسارة التحقق={val_loss:.4f}\")\n","\n"," # حفظ أفضل نموذج\n"," if val_loss < best_val_loss:\n"," best_val_loss = val_loss\n"," torch.save(model.state_dict(), os.path.join(DRIVE_ROOT,\"model_best.pth\"))\n"," print(\"🌟 تم حفظ أفضل نموذج\")\n","\n"," torch.cuda.empty_cache(); gc.collect()\n","\n","print(\"✅ انتهى التدريب\")\n"],"metadata":{"id":"NmwmlNHPKikn","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1768759578549,"user_tz":-180,"elapsed":765450,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"55fe38bb-a8a6-4934-d7f8-85a7d3780eb8"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stderr","text":["Epoch 1/15: 100%|██████████| 219/219 [00:46<00:00, 4.72it/s, loss=0.0978, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 1/15: خسارة التدريب=0.1833, خسارة التحقق=0.0991\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 2/15: 100%|██████████| 219/219 [00:46<00:00, 4.69it/s, loss=0.0568, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 2/15: خسارة التدريب=0.0755, خسارة التحقق=0.0575\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 3/15: 100%|██████████| 219/219 [00:48<00:00, 4.55it/s, loss=0.0458, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 3/15: خسارة التدريب=0.0494, خسارة التحقق=0.0435\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 4/15: 100%|██████████| 219/219 [00:47<00:00, 4.60it/s, loss=0.0291, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 4/15: خسارة التدريب=0.0369, خسارة التحقق=0.0329\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 5/15: 100%|██████████| 219/219 [00:48<00:00, 4.56it/s, loss=0.0228, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 5/15: خسارة التدريب=0.0276, خسارة التحقق=0.0232\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 6/15: 100%|██████████| 219/219 [00:48<00:00, 4.55it/s, loss=0.0192, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 6/15: خسارة التدريب=0.0208, خسارة التحقق=0.0185\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 7/15: 100%|██████████| 219/219 [00:48<00:00, 4.56it/s, loss=0.0194, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 7/15: خسارة التدريب=0.0165, خسارة التحقق=0.0157\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 8/15: 100%|██████████| 219/219 [00:47<00:00, 4.57it/s, loss=0.0113, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 8/15: خسارة التدريب=0.0133, خسارة التحقق=0.0124\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 9/15: 100%|██████████| 219/219 [00:48<00:00, 4.54it/s, loss=0.0094, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 9/15: خسارة التدريب=0.0115, خسارة التحقق=0.0103\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 10/15: 100%|██████████| 219/219 [00:48<00:00, 4.49it/s, loss=0.0121, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 10/15: خسارة التدريب=0.0098, خسارة التحقق=0.0081\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 11/15: 100%|██████████| 219/219 [00:48<00:00, 4.54it/s, loss=0.0078, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 11/15: خسارة التدريب=0.0082, خسارة التحقق=0.0078\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 12/15: 100%|██████████| 219/219 [00:48<00:00, 4.52it/s, loss=0.0081, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 12/15: خسارة التدريب=0.0077, خسارة التحقق=0.0064\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 13/15: 100%|██████████| 219/219 [00:47<00:00, 4.57it/s, loss=0.0050, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 13/15: خسارة التدريب=0.0062, خسارة التحقق=0.0052\n","🌟 تم حفظ أفضل نموذج\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 14/15: 100%|██████████| 219/219 [00:47<00:00, 4.57it/s, loss=0.0054, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 14/15: خسارة التدريب=0.0063, خسارة التحقق=0.0053\n"]},{"output_type":"stream","name":"stderr","text":["Epoch 15/15: 100%|██████████| 219/219 [00:47<00:00, 4.58it/s, loss=0.0045, lr=0.000200]\n"]},{"output_type":"stream","name":"stdout","text":["📉 الدورة 15/15: خسارة التدريب=0.0058, خسارة التحقق=0.0047\n","🌟 تم حفظ أفضل نموذج\n","✅ انتهى التدريب\n"]}]},{"cell_type":"code","source":["# @title\n","# الخلية السابعة\n","import matplotlib.pyplot as plt\n","\n","plt.figure(figsize=(8,5))\n","plt.plot(history_train, label=\"Train Loss\", marker='o')\n","plt.plot(history_val, label=\"Val Loss\", marker='s')\n","plt.xlabel(\"Epoch\")\n","plt.ylabel(\"Loss\")\n","plt.title(\"منحنى الخسارة عبر الدورات\")\n","plt.legend()\n","plt.grid(True, alpha=0.3)\n","plt.show()\n"],"metadata":{"id":"rEqbJfrGKoMS","cellView":"form"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# @title\n","# الخلية الثامنة\n","import matplotlib.pyplot as plt\n","\n","model.load_state_dict(torch.load(os.path.join(DRIVE_ROOT,\"model_best.pth\"), map_location=device))\n","model.eval()\n","\n","src, pose, tgt = next(iter(test_loader))\n","src, pose, tgt = src.to(device), pose.to(device), tgt.to(device)\n","\n","with torch.no_grad():\n"," pred = model(src, pose)\n","\n","# عرض بعض النتائج\n","n = 6\n","plt.figure(figsize=(14,7))\n","for i in range(n):\n"," plt.subplot(3,n,i+1); plt.imshow(src[i].cpu().squeeze(), cmap=\"gray\"); plt.title(\"Input\"); plt.axis('off')\n"," plt.subplot(3,n,i+1+n); plt.imshow(tgt[i].cpu().squeeze(), cmap=\"gray\"); plt.title(\"Target\"); plt.axis('off')\n"," plt.subplot(3,n,i+1+2*n); plt.imshow(pred[i].cpu().squeeze(), cmap=\"gray\"); plt.title(\"Predicted\"); plt.axis('off')\n","plt.tight_layout(); plt.show()\n"],"metadata":{"id":"TnBY5JfvKrh7","cellView":"form"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# الخلية التاسعة\n","import gradio as gr\n","import numpy as np\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(os.path.join(DRIVE_ROOT,\"model_best.pth\"), map_location=device))\n","model.eval()\n","\n","def predict(img_np, az, el, dist):\n"," if img_np is None: return None\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0, dist/1.5]], dtype=torch.float32).to(device)\n"," with torch.no_grad():\n"," pred = model(src, pose)\n"," return (pred.squeeze().cpu().numpy()*255).astype(np.uint8)\n","\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"),\n"," gr.Slider(0,360,0,label=\"Azimuth زاوية\"),\n"," gr.Slider(-20,50,20,label=\"Elevation زاوية\"),\n"," gr.Slider(0.8,1.5,1.0,label=\"Distance المسافة\")\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","demo.launch(share=True, debug=True)\n"],"metadata":{"id":"QCoFylNyKutI","colab":{"base_uri":"https://localhost:8080/","height":1000},"executionInfo":{"status":"error","timestamp":1768762598630,"user_tz":-180,"elapsed":17056,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"5c07cb6d-7afd-47fd-8c9f-7dce2a5755fb"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stderr","text":["/tmp/ipython-input-2159190893.py:7: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n"," model.load_state_dict(torch.load(os.path.join(DRIVE_ROOT,\"model_best.pth\"), map_location=device))\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"stream","name":"stdout","text":["Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch().\n","Running on public URL: https://5b90cdb7e0c5e9d177.gradio.live\n","\n","This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"error","ename":"KeyboardInterrupt","evalue":"","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-2159190893.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 26\u001b[0m \u001b[0moutputs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mgr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mImage\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlabel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"Predicted View\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 27\u001b[0m )\n\u001b[0;32m---> 28\u001b[0;31m \u001b[0mdemo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlaunch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mshare\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdebug\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\u001b[0m in \u001b[0;36mlaunch\u001b[0;34m(self, inline, inbrowser, share, debug, max_threads, auth, auth_message, prevent_thread_lock, show_error, server_name, server_port, height, width, favicon_path, ssl_keyfile, ssl_certfile, ssl_keyfile_password, ssl_verify, quiet, show_api, allowed_paths, blocked_paths, root_path, app_kwargs, state_session_capacity, share_server_address, share_server_protocol, auth_dependency, max_file_size, _frontend, enable_monitoring)\u001b[0m\n\u001b[1;32m 2536\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2537\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare_url\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2538\u001b[0;31m \u001b[0;32mwhile\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mnetworking\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0murl_ok\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare_url\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2539\u001b[0m \u001b[0mtime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msleep\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0.25\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2540\u001b[0m artifact = HTML(\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/networking.py\u001b[0m in \u001b[0;36murl_ok\u001b[0;34m(url)\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstatus_code\u001b[0m \u001b[0;32min\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m200\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m401\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m302\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;31m# 401 or 302 if auth is set\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 63\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 64\u001b[0;31m \u001b[0mtime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msleep\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0.500\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 65\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mConnectionError\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mhttpx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mConnectError\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mhttpx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTimeoutException\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 66\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mKeyboardInterrupt\u001b[0m: "]}]},{"cell_type":"code","source":["pip install --upgrade gradio\n"],"metadata":{"collapsed":true,"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"D338yWOK4TNr","executionInfo":{"status":"ok","timestamp":1768762611136,"user_tz":-180,"elapsed":7988,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"68f7cd40-c958-4b07-f99f-5dba60073e5b"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: gradio in /usr/local/lib/python3.12/dist-packages (4.44.1)\n","Collecting gradio\n"," Using cached gradio-6.3.0-py3-none-any.whl.metadata (16 kB)\n","Requirement already satisfied: aiofiles<25.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.12.1)\n","Requirement already satisfied: brotli>=1.1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (1.2.0)\n","Requirement already satisfied: fastapi<1.0,>=0.115.2 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.128.0)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio) (1.0.0)\n","Collecting gradio-client==2.0.3 (from gradio)\n"," Using cached gradio_client-2.0.3-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: groovy~=0.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.2)\n","Requirement already satisfied: httpx<1.0,>=0.24.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.28.1)\n","Requirement already satisfied: huggingface-hub<2.0,>=0.33.5 in /usr/local/lib/python3.12/dist-packages (from gradio) (1.3.2)\n","Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.1.6)\n","Requirement already satisfied: markupsafe<4.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.1.5)\n","Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.4.1)\n","Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.11.5)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.12/dist-packages (from gradio) (25.0)\n","Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.3.3)\n","Requirement already satisfied: pillow<13.0,>=8.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (10.4.0)\n","Requirement already satisfied: pydantic<=3.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.12.5)\n","Requirement already satisfied: pydub in /usr/local/lib/python3.12/dist-packages (from gradio) (0.25.1)\n","Requirement already satisfied: python-multipart>=0.0.18 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.0.21)\n","Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (6.0.3)\n","Requirement already satisfied: safehttpx<0.2.0,>=0.1.7 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.7)\n","Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.10.0)\n","Requirement already satisfied: starlette<1.0,>=0.40.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.50.0)\n","Requirement already satisfied: tomlkit<0.14.0,>=0.12.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.12.0)\n","Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.21.1)\n","Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.15.0)\n","Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.40.0)\n","Requirement already satisfied: fsspec in /usr/local/lib/python3.12/dist-packages (from gradio-client==2.0.3->gradio) (2026.1.0)\n","Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.12/dist-packages (from anyio<5.0,>=3.0->gradio) (3.11)\n","Requirement already satisfied: annotated-doc>=0.0.2 in /usr/local/lib/python3.12/dist-packages (from fastapi<1.0,>=0.115.2->gradio) (0.0.4)\n","Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (2026.1.4)\n","Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (1.0.9)\n","Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx<1.0,>=0.24.1->gradio) (0.16.0)\n","Requirement already satisfied: filelock in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (3.20.3)\n","Requirement already satisfied: hf-xet<2.0.0,>=1.2.0 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (1.2.0)\n","Requirement already satisfied: shellingham in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (1.5.4)\n","Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (4.67.1)\n","Requirement already satisfied: typer-slim in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (0.21.1)\n","Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2.9.0.post0)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.2)\n","Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.3)\n","Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.7.0)\n","Requirement already satisfied: pydantic-core==2.41.5 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (2.41.5)\n","Requirement already satisfied: typing-inspection>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.4.2)\n","Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (8.3.1)\n","Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (14.2.0)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.17.0)\n","Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (4.0.0)\n","Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.19.2)\n","Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.12/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)\n","Using cached gradio-6.3.0-py3-none-any.whl (23.0 MB)\n","Using cached gradio_client-2.0.3-py3-none-any.whl (55 kB)\n","Installing collected packages: gradio-client, gradio\n"," Attempting uninstall: gradio-client\n"," Found existing installation: gradio_client 1.3.0\n"," Uninstalling gradio_client-1.3.0:\n"," Successfully uninstalled gradio_client-1.3.0\n"," Attempting uninstall: gradio\n"," Found existing installation: gradio 4.44.1\n"," Uninstalling gradio-4.44.1:\n"," Successfully uninstalled gradio-4.44.1\n","Successfully installed gradio-6.3.0 gradio-client-2.0.3\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["gradio"]},"id":"b42f0330d4db4980843764db6cf1301c"}},"metadata":{}}]},{"cell_type":"code","source":["import shutil\n","import os\n","\n","# مسار النموذج في الدرايف\n","src_path = \"/content/drive/MyDrive/drawperson_dataset_with_depth/model_best.pth\"\n","\n","# المسار المحلي في كولاب\n","dst_path = \"/content/model.pth\"\n","\n","# نسخ الملف\n","shutil.copy(src_path, dst_path)\n","\n","print(\"✅ تم نسخ النموذج من الدرايف إلى التخزين المحلي:\", dst_path)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"JZ1NGq13576u","executionInfo":{"status":"ok","timestamp":1768760068790,"user_tz":-180,"elapsed":280,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"aaadccdc-18c3-4797-848e-338339426bbf"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ تم نسخ النموذج من الدرايف إلى التخزين المحلي: /content/model.pth\n"]}]},{"cell_type":"code","source":["from google.colab import drive\n","drive.mount('/content/drive')"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"P7hBHDfk8PCA","executionInfo":{"status":"ok","timestamp":1768737045924,"user_tz":-180,"elapsed":23475,"user":{"displayName":"Ali Mohmmed","userId":"08383725161836719383"}},"outputId":"bd0b9b59-2aaa-4627-fbf1-e365bbc06cfd"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Mounted at /content/drive\n"]}]},{"cell_type":"code","source":["!pip install -U gradio==4.44.1 gradio_client==0.16.4 fastapi==0.115.0 starlette==0.38.2 uvicorn==0.30.6 anyio==4.4.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"5l2bX3_T6kLg","executionInfo":{"status":"ok","timestamp":1768759667115,"user_tz":-180,"elapsed":4421,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"245c00a4-3fe8-433c-9154-786780009bbe","collapsed":true},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: gradio==4.44.1 in /usr/local/lib/python3.12/dist-packages (4.44.1)\n","Collecting gradio_client==0.16.4\n"," Downloading gradio_client-0.16.4-py3-none-any.whl.metadata (7.1 kB)\n","Collecting fastapi==0.115.0\n"," Downloading fastapi-0.115.0-py3-none-any.whl.metadata (27 kB)\n","Collecting starlette==0.38.2\n"," Downloading starlette-0.38.2-py3-none-any.whl.metadata (5.9 kB)\n","Collecting uvicorn==0.30.6\n"," Downloading uvicorn-0.30.6-py3-none-any.whl.metadata (6.6 kB)\n","Collecting anyio==4.4.0\n"," Downloading anyio-4.4.0-py3-none-any.whl.metadata (4.6 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","Collecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.16.4 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.16.4\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n"," The user requested gradio_client==0.16.4\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["# @title استدعاء المودل من /content/model.pth وتشغيل Gradio\n","import torch\n","import numpy as np\n","import gradio as gr\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","# ✅ استدعاء نفس تعريف الكلاس ConditionalUNet قبل هذا الجزء\n","# تأكد أنك نفذت الخلية التي فيها تعريف الكلاس ConditionalUNet\n","\n","# تحميل الأوزان من المسار الصحيح\n","MODEL_PATH = \"/content/model.pth\"\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n","model.eval()\n","\n","print(\"✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\")\n","\n","# دالة التنبؤ\n","def predict(img_np, az, el, dist): # Added 'dist' parameter\n"," if img_np is None:\n"," return None\n","\n"," # تحويل الصورة المدخلة إلى Tensor بالحجم المطلوب\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0, dist/1.5]], dtype=torch.float32).to(device) # Updated pose vector\n","\n"," with torch.no_grad():\n"," pred = model(src, pose)\n","\n"," return (pred.squeeze().cpu().numpy() * 255).astype(np.uint8)\n","\n","# ✅ واجهة Gradio\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"), # صورة رمادية كمصفوفة NumPy\n"," gr.Slider(0, 360, 0, label=\"Azimuth زاوية\"),\n"," gr.Slider(-20, 50, 20, label=\"Elevation زاوية\"),\n"," gr.Slider(0.8, 1.5, 1.0, label=\"Distance المسافة\") # Added Distance slider\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","\n","# تشغيل الواجهة مع رابط خارجي\n","demo.launch(share=True)"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"5bQc1WjjwdgY","executionInfo":{"status":"error","timestamp":1768762496742,"user_tz":-180,"elapsed":55900,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"55e87c07-267b-4be8-e211-7078889f2cc4","collapsed":true,"cellView":"form"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stderr","text":["/tmp/ipython-input-1479434393.py:14: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n"," model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n"]},{"output_type":"stream","name":"stdout","text":["✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"stream","name":"stdout","text":["Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n","Running on public URL: https://91a719de54eff23e6e.gradio.live\n","\n","This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," path: str,\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," if not response_awaited:\n"," ^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," exclude_none=response_model_exclude_none,\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," # For mounted sub-apps, include the mount path prefix\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," gradio_api_info = api_info(False)\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," app.api_info = app.get_blocks().get_api_info()\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," python_type = client_utils.json_schema_to_python_type(info)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," type_ = _json_schema_to_python_type(schema, schema.get(\"$defs\"))\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," f\"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," f\"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}\"\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," type_ = get_type(schema)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n"," if \"const\" in schema:\n"," ^^^^^^^^^^^^^^^^^\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"error","ename":"KeyboardInterrupt","evalue":"","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-1479434393.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 44\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 45\u001b[0m \u001b[0;31m# تشغيل الواجهة مع رابط خارجي\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 46\u001b[0;31m \u001b[0mdemo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlaunch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mshare\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\u001b[0m in \u001b[0;36mlaunch\u001b[0;34m(self, inline, inbrowser, share, debug, max_threads, auth, auth_message, prevent_thread_lock, show_error, server_name, server_port, height, width, favicon_path, ssl_keyfile, ssl_certfile, ssl_keyfile_password, ssl_verify, quiet, show_api, allowed_paths, blocked_paths, root_path, app_kwargs, state_session_capacity, share_server_address, share_server_protocol, auth_dependency, max_file_size, _frontend, enable_monitoring)\u001b[0m\n\u001b[1;32m 2536\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2537\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare_url\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2538\u001b[0;31m \u001b[0;32mwhile\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mnetworking\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0murl_ok\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshare_url\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2539\u001b[0m \u001b[0mtime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msleep\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0.25\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2540\u001b[0m artifact = HTML(\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/networking.py\u001b[0m in \u001b[0;36murl_ok\u001b[0;34m(url)\u001b[0m\n\u001b[1;32m 59\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mwarnings\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcatch_warnings\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 60\u001b[0m \u001b[0mwarnings\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfilterwarnings\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"ignore\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 61\u001b[0;31m \u001b[0mr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mhttpx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhead\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mverify\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 62\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstatus_code\u001b[0m \u001b[0;32min\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m200\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m401\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m302\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;31m# 401 or 302 if auth is set\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 63\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_api.py\u001b[0m in \u001b[0;36mhead\u001b[0;34m(url, params, headers, cookies, auth, proxy, follow_redirects, verify, timeout, trust_env)\u001b[0m\n\u001b[1;32m 265\u001b[0m \u001b[0mon\u001b[0m \u001b[0mthis\u001b[0m \u001b[0mfunction\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mas\u001b[0m\u001b[0;31m \u001b[0m\u001b[0;31m`\u001b[0m\u001b[0mHEAD\u001b[0m\u001b[0;31m`\u001b[0m \u001b[0mrequests\u001b[0m \u001b[0mshould\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0minclude\u001b[0m \u001b[0ma\u001b[0m \u001b[0mrequest\u001b[0m \u001b[0mbody\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 266\u001b[0m \"\"\"\n\u001b[0;32m--> 267\u001b[0;31m return request(\n\u001b[0m\u001b[1;32m 268\u001b[0m \u001b[0;34m\"HEAD\"\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 269\u001b[0m \u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_api.py\u001b[0m in \u001b[0;36mrequest\u001b[0;34m(method, url, params, content, data, files, json, headers, cookies, auth, proxy, timeout, follow_redirects, verify, trust_env)\u001b[0m\n\u001b[1;32m 107\u001b[0m \u001b[0mtrust_env\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtrust_env\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 108\u001b[0m ) as client:\n\u001b[0;32m--> 109\u001b[0;31m return client.request(\n\u001b[0m\u001b[1;32m 110\u001b[0m \u001b[0mmethod\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmethod\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 111\u001b[0m \u001b[0murl\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36mrequest\u001b[0;34m(self, method, url, content, data, files, json, params, headers, cookies, auth, follow_redirects, timeout, extensions)\u001b[0m\n\u001b[1;32m 823\u001b[0m \u001b[0mextensions\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mextensions\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 824\u001b[0m )\n\u001b[0;32m--> 825\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mauth\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfollow_redirects\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfollow_redirects\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 826\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 827\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mcontextmanager\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36msend\u001b[0;34m(self, request, stream, auth, follow_redirects)\u001b[0m\n\u001b[1;32m 912\u001b[0m \u001b[0mauth\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_build_request_auth\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 913\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 914\u001b[0;31m response = self._send_handling_auth(\n\u001b[0m\u001b[1;32m 915\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 916\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mauth\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_handling_auth\u001b[0;34m(self, request, auth, follow_redirects, history)\u001b[0m\n\u001b[1;32m 940\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 941\u001b[0m \u001b[0;32mwhile\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 942\u001b[0;31m response = self._send_handling_redirects(\n\u001b[0m\u001b[1;32m 943\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 944\u001b[0m \u001b[0mfollow_redirects\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfollow_redirects\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_handling_redirects\u001b[0;34m(self, request, follow_redirects, history)\u001b[0m\n\u001b[1;32m 977\u001b[0m \u001b[0mhook\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 978\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 979\u001b[0;31m \u001b[0mresponse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_send_single_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 980\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 981\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mhook\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_event_hooks\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"response\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_single_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 1012\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1013\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mrequest_context\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1014\u001b[0;31m \u001b[0mresponse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtransport\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1015\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1016\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresponse\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstream\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mSyncByteStream\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_transports/default.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 248\u001b[0m )\n\u001b[1;32m 249\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mmap_httpcore_exceptions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 250\u001b[0;31m \u001b[0mresp\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pool\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mreq\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 251\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 252\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstream\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtyping\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mIterable\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection_pool.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 254\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 255\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_close_connections\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mclosing\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 256\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mexc\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 257\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 258\u001b[0m \u001b[0;31m# Return the response. Note that in this case we still have to manage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection_pool.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 234\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 235\u001b[0m \u001b[0;31m# Send the request on the assigned connection.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 236\u001b[0;31m response = connection.handle_request(\n\u001b[0m\u001b[1;32m 237\u001b[0m \u001b[0mpool_request\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 238\u001b[0m )\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 101\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mexc\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 102\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 103\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_connection\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 104\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 105\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_connect\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mRequest\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0mNetworkStream\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/http11.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 134\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mTrace\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"response_closed\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mtrace\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 135\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_response_closed\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 136\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mexc\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 137\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 138\u001b[0m \u001b[0;31m# Sending the request...\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/http11.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 104\u001b[0m \u001b[0mheaders\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 105\u001b[0m \u001b[0mtrailing_data\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 106\u001b[0;31m ) = self._receive_response_headers(**kwargs)\n\u001b[0m\u001b[1;32m 107\u001b[0m trace.return_value = (\n\u001b[1;32m 108\u001b[0m \u001b[0mhttp_version\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/http11.py\u001b[0m in \u001b[0;36m_receive_response_headers\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 175\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 176\u001b[0m \u001b[0;32mwhile\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 177\u001b[0;31m \u001b[0mevent\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_receive_event\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 178\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mevent\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mh11\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mResponse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 179\u001b[0m \u001b[0;32mbreak\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/http11.py\u001b[0m in \u001b[0;36m_receive_event\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 215\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 216\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mevent\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mh11\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mNEED_DATA\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 217\u001b[0;31m data = self._network_stream.read(\n\u001b[0m\u001b[1;32m 218\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mREAD_NUM_BYTES\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtimeout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 219\u001b[0m )\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_backends/sync.py\u001b[0m in \u001b[0;36mread\u001b[0;34m(self, max_bytes, timeout)\u001b[0m\n\u001b[1;32m 126\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mmap_exceptions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mexc_map\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 127\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_sock\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msettimeout\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 128\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_sock\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrecv\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmax_bytes\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 129\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 130\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mwrite\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffer\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbytes\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtimeout\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mfloat\u001b[0m \u001b[0;34m|\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/lib/python3.12/ssl.py\u001b[0m in \u001b[0;36mrecv\u001b[0;34m(self, buflen, flags)\u001b[0m\n\u001b[1;32m 1230\u001b[0m \u001b[0;34m\"non-zero flags not allowed in calls to recv() on %s\"\u001b[0m \u001b[0;34m%\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1231\u001b[0m self.__class__)\n\u001b[0;32m-> 1232\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbuflen\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1233\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1234\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrecv\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbuflen\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mflags\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/lib/python3.12/ssl.py\u001b[0m in \u001b[0;36mread\u001b[0;34m(self, len, buffer)\u001b[0m\n\u001b[1;32m 1103\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_sslobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffer\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1104\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1105\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_sslobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1106\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mSSLError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1107\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0mSSL_ERROR_EOF\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msuppress_ragged_eofs\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mKeyboardInterrupt\u001b[0m: "]}]},{"cell_type":"code","source":["!pip uninstall -y gradio gradio_client\n","!pip install gradio==4.44.1 gradio_client==0.15.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"id":"5tDdxEKFUz7I","executionInfo":{"status":"ok","timestamp":1768760347375,"user_tz":-180,"elapsed":9037,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"80fb463e-3845-4326-d334-a439e7e4b2b8"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\u001b[33mWARNING: Skipping gradio as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Skipping gradio_client as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0mCollecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio_client==0.15.0\n"," Using cached gradio_client-0.15.0-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.12.1)\n","Requirement already satisfied: fastapi<1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.15.0\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["# @title استدعاء المودل من /content/model.pth وتشغيل Gradio\n","import torch\n","import numpy as np\n","import gradio as gr\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","# ✅ استدعاء نفس تعريف الكلاس ConditionalUNet قبل هذا الجزء\n","# تأكد أنك نفذت الخلية التي فيها تعريف الكلاس ConditionalUNet\n","\n","# تحميل الأوزان من المسار الصحيح\n","MODEL_PATH = \"/content/model.pth\"\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n","model.eval()\n","\n","print(\"✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\")\n","\n","# دالة التنبؤ\n","def predict(img_np, az, el, dist):\n"," if img_np is None:\n"," return None\n","\n"," # تحويل الصورة المدخلة إلى Tensor بالحجم المطلوب\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0, dist/1.5]], dtype=torch.float32).to(device)\n","\n"," with torch.no_grad():\n"," pred = model(src, pose)\n","\n"," return (pred.squeeze().cpu().numpy() * 255).astype(np.uint8)\n","\n","# ✅ واجهة Gradio\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"), # صورة رمادية كمصفوفة NumPy\n"," gr.Slider(0, 360, 0, label=\"Azimuth زاوية\"),\n"," gr.Slider(-20, 50, 20, label=\"Elevation زاوية\"),\n"," gr.Slider(0.8, 1.5, 1.0, label=\"Distance المسافة\") # ✅ إضافة العمق\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","\n","# تشغيل الواجهة مع رابط خارجي\n","demo.launch(share=True)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"collapsed":true,"cellView":"form","id":"4Ejx_nlKUfwX","executionInfo":{"status":"error","timestamp":1768762016123,"user_tz":-180,"elapsed":11256,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"e73dff51-1928-4e0a-e608-88bb8ce9b071"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stderr","text":["/tmp/ipython-input-3157589602.py:14: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n"," model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n"]},{"output_type":"stream","name":"stdout","text":["✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"stream","name":"stdout","text":["Colab notebook detected. To show errors in colab notebook, set debug=True in launch()\n","Running on public URL: https://3a0d5d11a6a355ff46.gradio.live\n","\n","This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"]},{"output_type":"stream","name":"stderr","text":["ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n","ERROR: Exception in ASGI application\n","Traceback (most recent call last):\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py\", line 416, in run_asgi\n"," result = await app( # type: ignore[func-returns-value]\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py\", line 60, in __call__\n"," return await self.app(scope, receive, send)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/applications.py\", line 1139, in __call__\n"," await super().__call__(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/applications.py\", line 107, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 186, in __call__\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py\", line 164, in __call__\n"," await self.app(scope, receive, _send)\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\", line 761, in __call__\n"," part.file.sha.update(data) # type: ignore\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py\", line 63, in __call__\n"," await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/middleware/asyncexitstack.py\", line 18, in __call__\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 716, in __call__\n"," await self.middleware_stack(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 736, in app\n"," await route.handle(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/routing.py\", line 290, in handle\n"," await self.app(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 119, in app\n"," await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 53, in wrapped_app\n"," raise exc\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py\", line 42, in wrapped_app\n"," await app(scope, receive, sender)\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 105, in app\n"," response = await f(request)\n"," ^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 385, in app\n"," raw_response = await run_endpoint_function(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/fastapi/routing.py\", line 286, in run_endpoint_function\n"," return await run_in_threadpool(dependant.call, **values)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/starlette/concurrency.py\", line 32, in run_in_threadpool\n"," return await anyio.to_thread.run_sync(func)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/to_thread.py\", line 63, in run_sync\n"," return await get_async_backend().run_sync_in_worker_thread(\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 2502, in run_sync_in_worker_thread\n"," return await future\n"," ^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/anyio/_backends/_asyncio.py\", line 986, in run\n"," result = context.run(func, *args)\n"," ^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 431, in main\n"," app_kwargs[\"lifespan\"] = create_lifespan_handler(\n"," ^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/routes.py\", line 460, in api_info\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\", line 2785, in get_api_info\n"," if enable_monitoring:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 893, in json_schema_to_python_type\n"," \"Dict(path: str, url: str | None, size: int | None, orig_name: str | None, mime_type: str | None)\",\n"," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 948, in _json_schema_to_python_type\n"," else:\n"," \n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 955, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 901, in _json_schema_to_python_type\n"," File \"/usr/local/lib/python3.12/dist-packages/gradio_client/utils.py\", line 863, in get_type\n","TypeError: argument of type 'bool' is not iterable\n"]},{"output_type":"error","ename":"KeyboardInterrupt","evalue":"","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-3157589602.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 44\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 45\u001b[0m \u001b[0;31m# تشغيل الواجهة مع رابط خارجي\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 46\u001b[0;31m \u001b[0mdemo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlaunch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mshare\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\u001b[0m in \u001b[0;36mlaunch\u001b[0;34m(self, inline, inbrowser, share, debug, max_threads, auth, auth_message, prevent_thread_lock, show_error, server_name, server_port, height, width, favicon_path, ssl_keyfile, ssl_certfile, ssl_keyfile_password, ssl_verify, quiet, show_api, allowed_paths, blocked_paths, root_path, app_kwargs, state_session_capacity, share_server_address, share_server_protocol, auth_dependency, max_file_size, _frontend, enable_monitoring)\u001b[0m\n\u001b[1;32m 2536\u001b[0m \u001b[0mmax_file_size\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mThe\u001b[0m \u001b[0mmaximum\u001b[0m \u001b[0mfile\u001b[0m \u001b[0msize\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mbytes\u001b[0m \u001b[0mthat\u001b[0m \u001b[0mcan\u001b[0m \u001b[0mbe\u001b[0m \u001b[0muploaded\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mCan\u001b[0m \u001b[0mbe\u001b[0m \u001b[0ma\u001b[0m \u001b[0mstring\u001b[0m \u001b[0mof\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mform\u001b[0m \u001b[0;34m\"\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwhere\u001b[0m \u001b[0mvalue\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0many\u001b[0m \u001b[0mpositive\u001b[0m \u001b[0minteger\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0munit\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mone\u001b[0m \u001b[0mof\u001b[0m \u001b[0;34m\"b\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"kb\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"mb\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"gb\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"tb\"\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mno\u001b[0m \u001b[0mlimit\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2537\u001b[0m \u001b[0menable_monitoring\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mEnables\u001b[0m \u001b[0mtraffic\u001b[0m \u001b[0mmonitoring\u001b[0m \u001b[0mof\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mapp\u001b[0m \u001b[0mthrough\u001b[0m \u001b[0mthe\u001b[0m \u001b[0;34m/\u001b[0m\u001b[0mmonitoring\u001b[0m \u001b[0mendpoint\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mBy\u001b[0m \u001b[0mdefault\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwhich\u001b[0m \u001b[0menables\u001b[0m \u001b[0mthis\u001b[0m \u001b[0mendpoint\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0mexplicitly\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwill\u001b[0m \u001b[0malso\u001b[0m \u001b[0mprint\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mmonitoring\u001b[0m \u001b[0mURL\u001b[0m \u001b[0mto\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mconsole\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwill\u001b[0m \u001b[0mdisable\u001b[0m \u001b[0mmonitoring\u001b[0m \u001b[0maltogether\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2538\u001b[0;31m \u001b[0mstrict_cors\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprevents\u001b[0m \u001b[0mexternal\u001b[0m \u001b[0mdomains\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mmaking\u001b[0m \u001b[0mrequests\u001b[0m \u001b[0mto\u001b[0m \u001b[0ma\u001b[0m \u001b[0mGradio\u001b[0m \u001b[0mserver\u001b[0m \u001b[0mrunning\u001b[0m \u001b[0mon\u001b[0m \u001b[0mlocalhost\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mallows\u001b[0m \u001b[0mrequests\u001b[0m \u001b[0mto\u001b[0m \u001b[0mlocalhost\u001b[0m \u001b[0mthat\u001b[0m \u001b[0moriginate\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mlocalhost\u001b[0m \u001b[0mbut\u001b[0m \u001b[0malso\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcrucially\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m\"null\"\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mThis\u001b[0m \u001b[0mparameter\u001b[0m \u001b[0mshould\u001b[0m \u001b[0mnormally\u001b[0m \u001b[0mbe\u001b[0m \u001b[0;32mTrue\u001b[0m \u001b[0mto\u001b[0m \u001b[0mprevent\u001b[0m \u001b[0mCSRF\u001b[0m \u001b[0mattacks\u001b[0m \u001b[0mbut\u001b[0m \u001b[0mmay\u001b[0m \u001b[0mneed\u001b[0m \u001b[0mto\u001b[0m \u001b[0mbe\u001b[0m \u001b[0;32mFalse\u001b[0m \u001b[0mwhen\u001b[0m \u001b[0membedding\u001b[0m \u001b[0ma\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0mlocally\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mrunning\u001b[0m \u001b[0mGradio\u001b[0m \u001b[0mapp\u001b[0m\u001b[0;34m*\u001b[0m \u001b[0musing\u001b[0m \u001b[0mweb\u001b[0m \u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2539\u001b[0m \u001b[0mssr_mode\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mGradio\u001b[0m \u001b[0mapp\u001b[0m \u001b[0mwill\u001b[0m \u001b[0mbe\u001b[0m \u001b[0mrendered\u001b[0m \u001b[0musing\u001b[0m \u001b[0mserver\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mside\u001b[0m \u001b[0mrendering\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwhich\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mtypically\u001b[0m \u001b[0mmore\u001b[0m \u001b[0mperformant\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mprovides\u001b[0m \u001b[0mbetter\u001b[0m \u001b[0mSEO\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbut\u001b[0m \u001b[0mthis\u001b[0m \u001b[0mrequires\u001b[0m \u001b[0mNode\u001b[0m \u001b[0;36m20\u001b[0m\u001b[0;34m+\u001b[0m \u001b[0mto\u001b[0m \u001b[0mbe\u001b[0m \u001b[0minstalled\u001b[0m \u001b[0mon\u001b[0m \u001b[0mthe\u001b[0m \u001b[0msystem\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mapp\u001b[0m \u001b[0mwill\u001b[0m \u001b[0mbe\u001b[0m \u001b[0mrendered\u001b[0m \u001b[0musing\u001b[0m \u001b[0mclient\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mside\u001b[0m \u001b[0mrendering\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwill\u001b[0m \u001b[0muse\u001b[0m \u001b[0mGRADIO_SSR_MODE\u001b[0m \u001b[0menvironment\u001b[0m \u001b[0mvariable\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mdefault\u001b[0m \u001b[0mto\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2540\u001b[0m \u001b[0mpwa\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mIf\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mGradio\u001b[0m \u001b[0mapp\u001b[0m \u001b[0mwill\u001b[0m \u001b[0mbe\u001b[0m \u001b[0mset\u001b[0m \u001b[0mup\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0man\u001b[0m \u001b[0minstallable\u001b[0m \u001b[0mPWA\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mProgressive\u001b[0m \u001b[0mWeb\u001b[0m \u001b[0mApp\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m \u001b[0mIf\u001b[0m \u001b[0mset\u001b[0m \u001b[0mto\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mdefault\u001b[0m \u001b[0mbehavior\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mthen\u001b[0m \u001b[0mthe\u001b[0m \u001b[0mPWA\u001b[0m \u001b[0mfeature\u001b[0m \u001b[0mwill\u001b[0m \u001b[0mbe\u001b[0m \u001b[0menabled\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mthis\u001b[0m \u001b[0mGradio\u001b[0m \u001b[0mapp\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0mlaunched\u001b[0m \u001b[0mon\u001b[0m \u001b[0mSpaces\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbut\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0motherwise\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/networking.py\u001b[0m in \u001b[0;36murl_ok\u001b[0;34m(url)\u001b[0m\n\u001b[1;32m 59\u001b[0m \u001b[0maddress\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtunnel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstart_tunnel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 60\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0maddress\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 61\u001b[0;31m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 62\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 63\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0murl_ok\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0mbool\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_api.py\u001b[0m in \u001b[0;36mhead\u001b[0;34m(url, params, headers, cookies, auth, proxy, follow_redirects, verify, timeout, trust_env)\u001b[0m\n\u001b[1;32m 265\u001b[0m \u001b[0mon\u001b[0m \u001b[0mthis\u001b[0m \u001b[0mfunction\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mas\u001b[0m\u001b[0;31m \u001b[0m\u001b[0;31m`\u001b[0m\u001b[0mHEAD\u001b[0m\u001b[0;31m`\u001b[0m \u001b[0mrequests\u001b[0m \u001b[0mshould\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0minclude\u001b[0m \u001b[0ma\u001b[0m \u001b[0mrequest\u001b[0m \u001b[0mbody\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 266\u001b[0m \"\"\"\n\u001b[0;32m--> 267\u001b[0;31m return request(\n\u001b[0m\u001b[1;32m 268\u001b[0m \u001b[0;34m\"HEAD\"\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 269\u001b[0m \u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_api.py\u001b[0m in \u001b[0;36mrequest\u001b[0;34m(method, url, params, content, data, files, json, headers, cookies, auth, proxy, timeout, follow_redirects, verify, trust_env)\u001b[0m\n\u001b[1;32m 107\u001b[0m \u001b[0mtrust_env\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtrust_env\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 108\u001b[0m ) as client:\n\u001b[0;32m--> 109\u001b[0;31m return client.request(\n\u001b[0m\u001b[1;32m 110\u001b[0m \u001b[0mmethod\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmethod\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 111\u001b[0m \u001b[0murl\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36mrequest\u001b[0;34m(self, method, url, content, data, files, json, params, headers, cookies, auth, follow_redirects, timeout, extensions)\u001b[0m\n\u001b[1;32m 823\u001b[0m \u001b[0mextensions\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mextensions\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 824\u001b[0m )\n\u001b[0;32m--> 825\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mauth\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfollow_redirects\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfollow_redirects\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 826\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 827\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mcontextmanager\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36msend\u001b[0;34m(self, request, stream, auth, follow_redirects)\u001b[0m\n\u001b[1;32m 912\u001b[0m \u001b[0mauth\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_build_request_auth\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 913\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 914\u001b[0;31m response = self._send_handling_auth(\n\u001b[0m\u001b[1;32m 915\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 916\u001b[0m \u001b[0mauth\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mauth\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_handling_auth\u001b[0;34m(self, request, auth, follow_redirects, history)\u001b[0m\n\u001b[1;32m 940\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 941\u001b[0m \u001b[0;32mwhile\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 942\u001b[0;31m response = self._send_handling_redirects(\n\u001b[0m\u001b[1;32m 943\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 944\u001b[0m \u001b[0mfollow_redirects\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfollow_redirects\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_handling_redirects\u001b[0;34m(self, request, follow_redirects, history)\u001b[0m\n\u001b[1;32m 977\u001b[0m \u001b[0mhook\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 978\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 979\u001b[0;31m \u001b[0mresponse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_send_single_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 980\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 981\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mhook\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_event_hooks\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"response\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_client.py\u001b[0m in \u001b[0;36m_send_single_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 1012\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1013\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mrequest_context\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1014\u001b[0;31m \u001b[0mresponse\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtransport\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1015\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1016\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresponse\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstream\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mSyncByteStream\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpx/_transports/default.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 248\u001b[0m )\n\u001b[1;32m 249\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mmap_httpcore_exceptions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 250\u001b[0;31m \u001b[0mresp\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_pool\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mreq\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 251\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 252\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstream\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtyping\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mIterable\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection_pool.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 254\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 255\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_close_connections\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mclosing\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 256\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mexc\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 257\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 258\u001b[0m \u001b[0;31m# Return the response. Note that in this case we still have to manage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection_pool.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 234\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 235\u001b[0m \u001b[0;31m# Send the request on the assigned connection.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 236\u001b[0;31m response = connection.handle_request(\n\u001b[0m\u001b[1;32m 237\u001b[0m \u001b[0mpool_request\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 238\u001b[0m )\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 99\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mBaseException\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mexc\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 100\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_connect_failed\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 101\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mexc\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 102\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 103\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_connection\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhandle_request\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection.py\u001b[0m in \u001b[0;36mhandle_request\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 76\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_request_lock\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 77\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_connection\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 78\u001b[0;31m \u001b[0mstream\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_connect\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mrequest\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 79\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 80\u001b[0m \u001b[0mssl_object\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstream\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_extra_info\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"ssl_object\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_sync/connection.py\u001b[0m in \u001b[0;36m_connect\u001b[0;34m(self, request)\u001b[0m\n\u001b[1;32m 122\u001b[0m }\n\u001b[1;32m 123\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mTrace\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"connect_tcp\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrequest\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mtrace\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 124\u001b[0;31m \u001b[0mstream\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_network_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconnect_tcp\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 125\u001b[0m \u001b[0mtrace\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturn_value\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mstream\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 126\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/httpcore/_backends/sync.py\u001b[0m in \u001b[0;36mconnect_tcp\u001b[0;34m(self, host, port, timeout, local_address, socket_options)\u001b[0m\n\u001b[1;32m 206\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 207\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mmap_exceptions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mexc_map\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 208\u001b[0;31m sock = socket.create_connection(\n\u001b[0m\u001b[1;32m 209\u001b[0m \u001b[0maddress\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 210\u001b[0m \u001b[0mtimeout\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/lib/python3.12/socket.py\u001b[0m in \u001b[0;36mcreate_connection\u001b[0;34m(address, timeout, source_address, all_errors)\u001b[0m\n\u001b[1;32m 848\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msource_address\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 849\u001b[0m \u001b[0msock\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbind\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msource_address\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 850\u001b[0;31m \u001b[0msock\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconnect\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msa\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 851\u001b[0m \u001b[0;31m# Break explicitly a reference cycle\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 852\u001b[0m \u001b[0mexceptions\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclear\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mKeyboardInterrupt\u001b[0m: "]}]},{"cell_type":"code","source":["!pip install -U gradio gradio-client\n"],"metadata":{"collapsed":true,"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"n6TW2t_taH8E","executionInfo":{"status":"ok","timestamp":1768761766100,"user_tz":-180,"elapsed":6336,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"9e2deee0-1ae7-4a94-e5c4-1b4b8574fcaa"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: gradio in /usr/local/lib/python3.12/dist-packages (4.44.1)\n","Collecting gradio\n"," Using cached gradio-6.3.0-py3-none-any.whl.metadata (16 kB)\n","Requirement already satisfied: gradio-client in /usr/local/lib/python3.12/dist-packages (1.3.0)\n","Collecting gradio-client\n"," Using cached gradio_client-2.0.3-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<25.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.12.1)\n","Requirement already satisfied: brotli>=1.1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (1.2.0)\n","Requirement already satisfied: fastapi<1.0,>=0.115.2 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio) (1.0.0)\n","Requirement already satisfied: groovy~=0.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.2)\n","Requirement already satisfied: httpx<1.0,>=0.24.1 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.28.1)\n","Requirement already satisfied: huggingface-hub<2.0,>=0.33.5 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.36.0)\n","Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.1.6)\n","Requirement already satisfied: markupsafe<4.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.1.5)\n","Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (1.26.4)\n","Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (3.11.5)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.12/dist-packages (from gradio) (25.0)\n","Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.2.2)\n","Requirement already satisfied: pillow<13.0,>=8.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (10.3.0)\n","Requirement already satisfied: pydantic<=3.0,>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.12.3)\n","Requirement already satisfied: pydub in /usr/local/lib/python3.12/dist-packages (from gradio) (0.25.1)\n","Requirement already satisfied: python-multipart>=0.0.18 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.0.21)\n","Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (6.0.3)\n","Requirement already satisfied: safehttpx<0.2.0,>=0.1.7 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.1.7)\n","Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (2.10.0)\n","Requirement already satisfied: starlette<1.0,>=0.40.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.50.0)\n","Requirement already satisfied: tomlkit<0.14.0,>=0.12.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.12.0)\n","Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.21.1)\n","Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (4.15.0)\n","Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.12/dist-packages (from gradio) (0.40.0)\n","Requirement already satisfied: fsspec in /usr/local/lib/python3.12/dist-packages (from gradio-client) (2025.3.0)\n","Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.12/dist-packages (from anyio<5.0,>=3.0->gradio) (3.11)\n","Requirement already satisfied: annotated-doc>=0.0.2 in /usr/local/lib/python3.12/dist-packages (from fastapi<1.0,>=0.115.2->gradio) (0.0.4)\n","Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (2026.1.4)\n","Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx<1.0,>=0.24.1->gradio) (1.0.9)\n","Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx<1.0,>=0.24.1->gradio) (0.16.0)\n","Requirement already satisfied: filelock in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (3.20.2)\n","Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (2.32.5)\n","Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (4.67.1)\n","Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub<2.0,>=0.33.5->gradio) (1.2.0)\n","Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2.9.0.post0)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.2)\n","Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio) (2025.3)\n","Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.7.0)\n","Requirement already satisfied: pydantic-core==2.41.4 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (2.41.4)\n","Requirement already satisfied: typing-inspection>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from pydantic<=3.0,>=2.0->gradio) (0.4.2)\n","Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (8.3.1)\n","Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (1.5.4)\n","Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio) (13.9.4)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.17.0)\n","Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (4.0.0)\n","Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.19.2)\n","Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests->huggingface-hub<2.0,>=0.33.5->gradio) (3.4.4)\n","Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests->huggingface-hub<2.0,>=0.33.5->gradio) (2.6.3)\n","Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.12/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)\n","Using cached gradio-6.3.0-py3-none-any.whl (23.0 MB)\n","Using cached gradio_client-2.0.3-py3-none-any.whl (55 kB)\n","Installing collected packages: gradio-client, gradio\n"," Attempting uninstall: gradio-client\n"," Found existing installation: gradio_client 1.3.0\n"," Uninstalling gradio_client-1.3.0:\n"," Successfully uninstalled gradio_client-1.3.0\n"," Attempting uninstall: gradio\n"," Found existing installation: gradio 4.44.1\n"," Uninstalling gradio-4.44.1:\n"," Successfully uninstalled gradio-4.44.1\n","Successfully installed gradio-6.3.0 gradio-client-2.0.3\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["gradio"]},"id":"8fbcf5ba8cd34e6ba479ee39c44d3fec"}},"metadata":{}}]},{"cell_type":"code","source":["!pip uninstall -y gradio gradio_client\n","!pip install gradio==4.44.1 gradio_client==0.15.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"id":"zNrbnZQoVuBZ","executionInfo":{"status":"ok","timestamp":1768760492411,"user_tz":-180,"elapsed":5193,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"a2eb2baa-3f6f-46fc-a670-466b414765c0"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\u001b[33mWARNING: Skipping gradio as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Skipping gradio_client as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0mCollecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio_client==0.15.0\n"," Using cached gradio_client-0.15.0-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.12.1)\n","Requirement already satisfied: fastapi<1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.15.0\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["!pip install --upgrade requests urllib3 certifi\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":671},"collapsed":true,"id":"XG3mKkRcWOqx","executionInfo":{"status":"ok","timestamp":1768760625253,"user_tz":-180,"elapsed":5638,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"5affe8b7-ef86-4120-909a-1109b87251ea"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (2.32.4)\n","Collecting requests\n"," Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)\n","Requirement already satisfied: urllib3 in /usr/local/lib/python3.12/dist-packages (2.5.0)\n","Collecting urllib3\n"," Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB)\n","Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (2026.1.4)\n","Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests) (3.4.4)\n","Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.12/dist-packages (from requests) (3.11)\n","Downloading requests-2.32.5-py3-none-any.whl (64 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m64.7/64.7 kB\u001b[0m \u001b[31m7.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hDownloading urllib3-2.6.3-py3-none-any.whl (131 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m131.6/131.6 kB\u001b[0m \u001b[31m12.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hInstalling collected packages: urllib3, requests\n"," Attempting uninstall: urllib3\n"," Found existing installation: urllib3 2.5.0\n"," Uninstalling urllib3-2.5.0:\n"," Successfully uninstalled urllib3-2.5.0\n"," Attempting uninstall: requests\n"," Found existing installation: requests 2.32.4\n"," Uninstalling requests-2.32.4:\n"," Successfully uninstalled requests-2.32.4\n","\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","gradio 4.44.1 requires pillow<11.0,>=8.0, but you have pillow 12.1.0 which is incompatible.\n","google-colab 1.0.0 requires requests==2.32.4, but you have requests 2.32.5 which is incompatible.\n","tensorflow 2.19.0 requires numpy<2.2.0,>=1.26.0, but you have numpy 2.4.1 which is incompatible.\n","dataproc-spark-connect 1.0.1 requires websockets>=14.0, but you have websockets 12.0 which is incompatible.\n","google-adk 1.21.0 requires websockets<16.0.0,>=15.0.1, but you have websockets 12.0 which is incompatible.\n","google-genai 1.55.0 requires websockets<15.1.0,>=13.0.0, but you have websockets 12.0 which is incompatible.\n","yfinance 0.2.66 requires websockets>=13.0, but you have websockets 12.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0mSuccessfully installed requests-2.32.5 urllib3-2.6.3\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["urllib3"]},"id":"e9b525d9b3a94f19bfcc8b9ea079fecc"}},"metadata":{}}]},{"cell_type":"code","source":["!pip uninstall -y gradio gradio_client\n","!pip install gradio==4.44.1 gradio_client==0.15.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"id":"hlD_qMDdWPbB","executionInfo":{"status":"ok","timestamp":1768760642667,"user_tz":-180,"elapsed":9669,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"c763e7dd-4aee-492f-c53f-e8a5a65fb482"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Found existing installation: gradio 4.44.1\n","Uninstalling gradio-4.44.1:\n"," Successfully uninstalled gradio-4.44.1\n","Found existing installation: gradio_client 1.3.0\n","Uninstalling gradio_client-1.3.0:\n"," Successfully uninstalled gradio_client-1.3.0\n","Collecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio_client==0.15.0\n"," Using cached gradio_client-0.15.0-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.12.1)\n","Requirement already satisfied: fastapi<1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.15.0\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["import gradio as gr\n","print(\"✅ Gradio جاهز\")\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"evyj4kP1WRcb","executionInfo":{"status":"ok","timestamp":1768760644942,"user_tz":-180,"elapsed":47,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"06624447-cf0c-4e89-f6a0-efbfce0a94af"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["✅ Gradio جاهز\n"]}]},{"cell_type":"code","source":["!pip uninstall -y gradio gradio_client\n","!pip install gradio==4.44.1 gradio_client==0.15.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"collapsed":true,"id":"Fzxd7RGqXFiP","executionInfo":{"status":"ok","timestamp":1768760847723,"user_tz":-180,"elapsed":4529,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"3a45f230-fb2c-4a3f-caf2-5243aca35551"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\u001b[33mWARNING: Skipping gradio as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Skipping gradio_client as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0mCollecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio_client==0.15.0\n"," Using cached gradio_client-0.15.0-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.12.1)\n","Requirement already satisfied: fastapi<1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.\n","\u001b[31mERROR: Cannot install gradio==4.44.1 and gradio_client==0.15.0 because these package versions have conflicting dependencies.\u001b[0m\u001b[31m\n","\u001b[0m\n","The conflict is caused by:\n"," The user requested gradio_client==0.15.0\n"," gradio 4.44.1 depends on gradio-client==1.3.0\n","\n","To fix this you could try to:\n","1. loosen the range of package versions you've specified\n","2. remove package versions to allow pip to attempt to solve the dependency conflict\n","\n","\u001b[31mERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts\u001b[0m\u001b[31m\n","\u001b[0m"]}]},{"cell_type":"code","source":["!pip uninstall -y gradio gradio_client\n","!pip install gradio==4.44.1 gradio-client==1.3.0\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"collapsed":true,"id":"3BeqW1xbXWDM","executionInfo":{"status":"ok","timestamp":1768760907363,"user_tz":-180,"elapsed":10061,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"f0973519-f5f3-47ed-91b7-32f9d89ba3b5"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\u001b[33mWARNING: Skipping gradio as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0m\u001b[33mWARNING: Skipping gradio_client as it is not installed.\u001b[0m\u001b[33m\n","\u001b[0mCollecting gradio==4.44.1\n"," Using cached gradio-4.44.1-py3-none-any.whl.metadata (15 kB)\n","Collecting gradio-client==1.3.0\n"," Using cached gradio_client-1.3.0-py3-none-any.whl.metadata (7.1 kB)\n","Requirement already satisfied: aiofiles<24.0,>=22.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (23.2.1)\n","Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.12.1)\n","Requirement already satisfied: fastapi<1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.123.10)\n","Requirement already satisfied: ffmpy in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (1.0.0)\n","Requirement already satisfied: httpx>=0.24.1 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.28.1)\n","Requirement already satisfied: huggingface-hub>=0.19.3 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.36.0)\n","Requirement already satisfied: importlib-resources<7.0,>=1.3 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (6.5.2)\n","Requirement already satisfied: jinja2<4.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (3.1.6)\n","Requirement already satisfied: markupsafe~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.1.5)\n","Requirement already satisfied: matplotlib~=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (3.10.8)\n","Requirement already satisfied: numpy<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.4.1)\n","Requirement already satisfied: orjson~=3.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (3.11.5)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (25.0)\n","Requirement already satisfied: pandas<3.0,>=1.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.2.2)\n","Collecting pillow<11.0,>=8.0 (from gradio==4.44.1)\n"," Using cached pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.2 kB)\n","Requirement already satisfied: pydantic>=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.12.3)\n","Requirement already satisfied: pydub in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.25.1)\n","Requirement already satisfied: python-multipart>=0.0.9 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.0.21)\n","Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (6.0.3)\n","Requirement already satisfied: ruff>=0.2.2 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.14.11)\n","Requirement already satisfied: semantic-version~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.10.0)\n","Requirement already satisfied: tomlkit==0.12.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.12.0)\n","Requirement already satisfied: typer<1.0,>=0.12 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.21.1)\n","Requirement already satisfied: typing-extensions~=4.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (4.15.0)\n","Requirement already satisfied: urllib3~=2.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (2.6.3)\n","Requirement already satisfied: uvicorn>=0.14.0 in /usr/local/lib/python3.12/dist-packages (from gradio==4.44.1) (0.40.0)\n","Requirement already satisfied: fsspec in /usr/local/lib/python3.12/dist-packages (from gradio-client==1.3.0) (2025.3.0)\n","Requirement already satisfied: websockets<13.0,>=10.0 in /usr/local/lib/python3.12/dist-packages (from gradio-client==1.3.0) (12.0)\n","Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.12/dist-packages (from anyio<5.0,>=3.0->gradio==4.44.1) (3.11)\n","Requirement already satisfied: starlette<0.51.0,>=0.40.0 in /usr/local/lib/python3.12/dist-packages (from fastapi<1.0->gradio==4.44.1) (0.50.0)\n","Requirement already satisfied: annotated-doc>=0.0.2 in /usr/local/lib/python3.12/dist-packages (from fastapi<1.0->gradio==4.44.1) (0.0.4)\n","Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx>=0.24.1->gradio==4.44.1) (2026.1.4)\n","Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx>=0.24.1->gradio==4.44.1) (1.0.9)\n","Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx>=0.24.1->gradio==4.44.1) (0.16.0)\n","Requirement already satisfied: filelock in /usr/local/lib/python3.12/dist-packages (from huggingface-hub>=0.19.3->gradio==4.44.1) (3.20.2)\n","Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (from huggingface-hub>=0.19.3->gradio==4.44.1) (2.32.5)\n","Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub>=0.19.3->gradio==4.44.1) (4.67.1)\n","Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in /usr/local/lib/python3.12/dist-packages (from huggingface-hub>=0.19.3->gradio==4.44.1) (1.2.0)\n","Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (1.3.3)\n","Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (0.12.1)\n","Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (4.61.1)\n","Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (1.4.9)\n","Requirement already satisfied: pyparsing>=3 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (3.3.1)\n","Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.12/dist-packages (from matplotlib~=3.0->gradio==4.44.1) (2.9.0.post0)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio==4.44.1) (2025.2)\n","Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas<3.0,>=1.0->gradio==4.44.1) (2025.3)\n","Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.0->gradio==4.44.1) (0.7.0)\n","Requirement already satisfied: pydantic-core==2.41.4 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.0->gradio==4.44.1) (2.41.4)\n","Requirement already satisfied: typing-inspection>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from pydantic>=2.0->gradio==4.44.1) (0.4.2)\n","Requirement already satisfied: click>=8.0.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio==4.44.1) (8.3.1)\n","Requirement already satisfied: shellingham>=1.3.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio==4.44.1) (1.5.4)\n","Requirement already satisfied: rich>=10.11.0 in /usr/local/lib/python3.12/dist-packages (from typer<1.0,>=0.12->gradio==4.44.1) (13.9.4)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==4.44.1) (1.17.0)\n","Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.44.1) (4.0.0)\n","Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.12/dist-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio==4.44.1) (2.19.2)\n","Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests->huggingface-hub>=0.19.3->gradio==4.44.1) (3.4.4)\n","Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.12/dist-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio==4.44.1) (0.1.2)\n","Using cached gradio-4.44.1-py3-none-any.whl (18.1 MB)\n","Using cached gradio_client-1.3.0-py3-none-any.whl (318 kB)\n","Using cached pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.5 MB)\n","Installing collected packages: pillow, gradio-client, gradio\n"," Attempting uninstall: pillow\n"," Found existing installation: pillow 12.1.0\n"," Uninstalling pillow-12.1.0:\n"," Successfully uninstalled pillow-12.1.0\n","Successfully installed gradio-4.44.1 gradio-client-1.3.0 pillow-10.4.0\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["PIL","gradio"]},"id":"23ed3abd40104e6e9e503302efb05a90"}},"metadata":{}}]},{"cell_type":"code","source":[],"metadata":{"id":"RiHJxAfVa-ux"},"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"b3c0b3db","executionInfo":{"status":"ok","timestamp":1768762376176,"user_tz":-180,"elapsed":60599,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"66384f30-2ec9-46d7-a7ed-f253506a20c0"},"source":["# Uninstall all gradio-related packages to ensure a clean slate\n","!pip uninstall -y gradio gradio_client\n","\n","# Install the specific, known working versions\n","!pip install gradio==4.44.1 gradio-client==1.3.0 --force-reinstall -q\n","\n","print(\"✅ Gradio and Gradio Client installed successfully.\")"],"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Found existing installation: gradio 4.44.1\n","Uninstalling gradio-4.44.1:\n"," Successfully uninstalled gradio-4.44.1\n","Found existing installation: gradio_client 1.3.0\n","Uninstalling gradio_client-1.3.0:\n"," Successfully uninstalled gradio_client-1.3.0\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.6/41.6 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m91.2/91.2 kB\u001b[0m \u001b[31m7.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m90.6/90.6 kB\u001b[0m \u001b[31m8.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m114.2/114.2 kB\u001b[0m \u001b[31m8.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m113.6/113.6 kB\u001b[0m \u001b[31m12.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m103.1/103.1 kB\u001b[0m \u001b[31m11.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m73.5/73.5 kB\u001b[0m \u001b[31m7.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.8/78.8 kB\u001b[0m \u001b[31m7.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m534.5/534.5 kB\u001b[0m \u001b[31m33.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m201.8/201.8 kB\u001b[0m \u001b[31m19.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.9/134.9 kB\u001b[0m \u001b[31m13.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m139.0/139.0 kB\u001b[0m \u001b[31m13.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m66.5/66.5 kB\u001b[0m \u001b[31m7.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.4/12.4 MB\u001b[0m \u001b[31m56.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m463.6/463.6 kB\u001b[0m \u001b[31m39.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.1/2.1 MB\u001b[0m \u001b[31m101.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m807.9/807.9 kB\u001b[0m \u001b[31m61.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.9/13.9 MB\u001b[0m \u001b[31m48.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m47.4/47.4 kB\u001b[0m \u001b[31m4.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m44.6/44.6 kB\u001b[0m \u001b[31m4.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m68.5/68.5 kB\u001b[0m \u001b[31m6.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m108.3/108.3 kB\u001b[0m \u001b[31m11.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m362.6/362.6 kB\u001b[0m \u001b[31m33.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.0/5.0 MB\u001b[0m \u001b[31m127.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.3/3.3 MB\u001b[0m \u001b[31m113.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m71.0/71.0 kB\u001b[0m \u001b[31m7.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.5/1.5 MB\u001b[0m \u001b[31m80.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m121.8/121.8 kB\u001b[0m \u001b[31m11.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m229.9/229.9 kB\u001b[0m \u001b[31m21.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m509.2/509.2 kB\u001b[0m \u001b[31m42.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m243.4/243.4 kB\u001b[0m \u001b[31m23.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m74.0/74.0 kB\u001b[0m \u001b[31m6.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m348.5/348.5 kB\u001b[0m \u001b[31m29.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m152.9/152.9 kB\u001b[0m \u001b[31m15.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m47.4/47.4 kB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m87.3/87.3 kB\u001b[0m \u001b[31m7.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m68.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n","ipython 7.34.0 requires jedi>=0.16, which is not installed.\n","google-colab 1.0.0 requires pandas==2.2.2, but you have pandas 2.3.3 which is incompatible.\n","google-colab 1.0.0 requires requests==2.32.4, but you have requests 2.32.5 which is incompatible.\n","opencv-contrib-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","numba 0.60.0 requires numpy<2.1,>=1.22, but you have numpy 2.4.1 which is incompatible.\n","datasets 4.0.0 requires fsspec[http]<=2025.3.0,>=2023.1.0, but you have fsspec 2026.1.0 which is incompatible.\n","torchaudio 2.9.0+cu126 requires torch==2.9.0, but you have torch 2.4.1 which is incompatible.\n","tensorflow 2.19.0 requires numpy<2.2.0,>=1.26.0, but you have numpy 2.4.1 which is incompatible.\n","dataproc-spark-connect 1.0.1 requires websockets>=14.0, but you have websockets 12.0 which is incompatible.\n","opencv-python-headless 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","transformers 4.57.3 requires huggingface-hub<1.0,>=0.34.0, but you have huggingface-hub 1.3.2 which is incompatible.\n","google-adk 1.21.0 requires fastapi<0.124.0,>=0.115.0, but you have fastapi 0.128.0 which is incompatible.\n","google-adk 1.21.0 requires websockets<16.0.0,>=15.0.1, but you have websockets 12.0 which is incompatible.\n","gcsfs 2025.3.0 requires fsspec==2025.3.0, but you have fsspec 2026.1.0 which is incompatible.\n","opencv-python 4.12.0.88 requires numpy<2.3.0,>=2; python_version >= \"3.9\", but you have numpy 2.4.1 which is incompatible.\n","google-genai 1.55.0 requires websockets<15.1.0,>=13.0.0, but you have websockets 12.0 which is incompatible.\n","bigframes 2.31.0 requires rich<14,>=12.4.4, but you have rich 14.2.0 which is incompatible.\n","yfinance 0.2.66 requires websockets>=13.0, but you have websockets 12.0 which is incompatible.\u001b[0m\u001b[31m\n","\u001b[0m✅ Gradio and Gradio Client installed successfully.\n"]}]},{"cell_type":"markdown","metadata":{"id":"03b86b85"},"source":["Please run the following cells in order to define the necessary functions and load the model:\n","1. **`QxJFm0TPyrQ3`**: Defines `generate_image_matplotlib`.\n","2. **`iUeepW38zwmX`**: Defines `ConditionalUNet`.\n","3. **`JZ1NGq13576u`**: Copies the model from Google Drive to local storage.\n","4. **`4Ejx_nlKUfwX`**: Launches the Gradio interface using the loaded model. \n"]},{"cell_type":"code","source":["pip install --upgrade gradio\n"],"metadata":{"id":"HwH0NhAYgHkf"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# @title استدعاء المودل من /content/model.pth وتشغيل Gradio\n","import torch\n","import numpy as np\n","import gradio as gr\n","\n","device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n","\n","# ✅ استدعاء نفس تعريف الكلاس ConditionalUNet قبل هذا الجزء\n","# تأكد أنك نفذت الخلية التي فيها تعريف الكلاس ConditionalUNet\n","\n","# تحميل الأوزان من المسار الصحيح\n","MODEL_PATH = \"/content/model.pth\"\n","model = ConditionalUNet().to(device)\n","model.load_state_dict(torch.load(MODEL_PATH, map_location=device))\n","model.eval()\n","\n","print(\"✅ تم استدعاء المودل بنجاح وهو جاهز للاستخدام عبر Gradio\")\n","\n","# دالة التنبؤ\n","def predict(img_np, az, el):\n"," if img_np is None:\n"," return None\n","\n"," # تحويل الصورة المدخلة إلى Tensor بالحجم المطلوب\n"," src = torch.from_numpy(img_np.astype(np.float32)/255.0).unsqueeze(0).unsqueeze(0).to(device)\n"," pose = torch.tensor([[az/180.0 - 1.0, el/45.0]], dtype=torch.float32).to(device)\n","\n"," with torch.no_grad():\n"," pred = model(src, pose)\n","\n"," return (pred.squeeze().cpu().numpy() * 255).astype(np.uint8)\n","\n","# ✅ واجهة Gradio\n","demo = gr.Interface(\n"," fn=predict,\n"," inputs=[\n"," gr.Image(image_mode='L', type=\"numpy\"), # صورة رمادية كمصفوفة NumPy\n"," gr.Slider(0, 360, 0, label=\"Azimuth زاوية\"),\n"," gr.Slider(-20, 50, 20, label=\"Elevation زاوية\")\n"," ],\n"," outputs=gr.Image(label=\"Predicted View\")\n",")\n","\n","# تشغيل الواجهة مع رابط خارجي\n","demo.launch(share=True)\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":529},"id":"nNUbzlWYgIgd","executionInfo":{"status":"error","timestamp":1768763529253,"user_tz":-180,"elapsed":108,"user":{"displayName":"Ahm Ahm","userId":"06859971556669665690"}},"outputId":"0247c3e5-2c55-43ab-a97a-558cfb92a59b"},"execution_count":6,"outputs":[{"output_type":"error","ename":"ImportError","evalue":"cannot import name 'HfFolder' from 'huggingface_hub' (/usr/local/lib/python3.12/dist-packages/huggingface_hub/__init__.py)","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)","\u001b[0;32m/tmp/ipython-input-2958561617.py\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mnumpy\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mgr\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0mdevice\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdevice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"cuda\"\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mtorch\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcuda\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mis_available\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0;34m\"cpu\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mjson\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_simple_templates\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mimage_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprocessing_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/_simple_templates/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpledropdown\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleDropdown\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpleimage\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0msimpletextbox\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSimpleTextbox\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0m__all__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m\"SimpleDropdown\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"SimpleTextbox\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"SimpleImage\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/_simple_templates/simpledropdown.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mtyping\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mTYPE_CHECKING\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mAny\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mCallable\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mSequence\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 6\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbase\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mFormComponent\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 7\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevents\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEvents\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/__init__.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mannotated_image\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mAnnotatedImage\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maudio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mAudio\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m from gradio.components.base import (\n\u001b[1;32m 4\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mFormComponent\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/annotated_image.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mprocessing_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 14\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponents\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbase\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponent\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 15\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mFileData\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 16\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevents\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEvents\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/components/base.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 18\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 19\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 20\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mblocks\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mBlock\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mBlockContext\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 21\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomponent_meta\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mComponentMeta\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mBaseModel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mDeveloperPath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioDataModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/blocks.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 37\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio_client\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocumentation\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdocument\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 38\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 39\u001b[0;31m from gradio import (\n\u001b[0m\u001b[1;32m 40\u001b[0m \u001b[0manalytics\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 41\u001b[0m \u001b[0mcomponents\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/networking.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mhttpx\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mroutes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mApp\u001b[0m \u001b[0;31m# HACK: to avoid circular import # noqa: F401\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtunneling\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mTunnel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/routes.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 67\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 69\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mranged_response\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mroute_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwasm_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 70\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontext\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mContext\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 71\u001b[0m from gradio.data_classes import (\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/route_utils.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 51\u001b[0m )\n\u001b[1;32m 52\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexceptions\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mError\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 53\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhelpers\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mEventData\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 54\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstate_holder\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mSessionState\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/helpers.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 24\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio_client\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdocumentation\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdocument\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 25\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 26\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mcomponents\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moauth\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprocessing_utils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mroutes\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwasm_utils\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 27\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontext\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mContext\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mLocalContext\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mget_blocks_context\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 28\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mgradio\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdata_classes\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mGradioModel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mGradioRootModel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.12/dist-packages/gradio/oauth.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mfastapi\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mfastapi\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mresponses\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mRedirectResponse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mhuggingface_hub\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mHfFolder\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwhoami\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 14\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 15\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0;34m.\u001b[0m\u001b[0mutils\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mget_space\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;31mImportError\u001b[0m: cannot import name 'HfFolder' from 'huggingface_hub' (/usr/local/lib/python3.12/dist-packages/huggingface_hub/__init__.py)","","\u001b[0;31m---------------------------------------------------------------------------\u001b[0;32m\nNOTE: If your import is failing due to a missing package, you can\nmanually install dependencies using either !pip or !apt.\n\nTo view examples of installing some common dependencies, click the\n\"Open Examples\" button below.\n\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n"],"errorDetails":{"actions":[{"action":"open_url","actionText":"Open Examples","url":"/notebooks/snippets/importing_libraries.ipynb"}]}}]}]}