CoolFace
Apppublic

catherinehelenna/model_test_111

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
test.ipynb139 linesDownload Raw Back to root
1{2 "cells": [3  {4   "cell_type": "code",5   "execution_count": 3,6   "metadata": {},7   "outputs": [8    {9     "name": "stdout",10     "output_type": "stream",11     "text": [12      "Collecting streamlit\n",13      "  Obtaining dependency information for streamlit from https://files.pythonhosted.org/packages/e9/07/63a6e890c9b998a6318b46c2a34377fd1a3e01a94c427d82bfb2472b7c16/streamlit-1.30.0-py2.py3-none-any.whl.metadata\n",14      "  Downloading streamlit-1.30.0-py2.py3-none-any.whl.metadata (8.2 kB)\n",15      "Collecting altair<6,>=4.0 (from streamlit)\n",16      "  Obtaining dependency information for altair<6,>=4.0 from https://files.pythonhosted.org/packages/c5/e4/7fcceef127badbb0d644d730d992410e4f3799b295c9964a172f92a469c7/altair-5.2.0-py3-none-any.whl.metadata\n",17      "  Downloading altair-5.2.0-py3-none-any.whl.metadata (8.7 kB)\n",18      "Collecting blinker<2,>=1.0.0 (from streamlit)\n",19      "  Obtaining dependency information for blinker<2,>=1.0.0 from https://files.pythonhosted.org/packages/fa/2a/7f3714cbc6356a0efec525ce7a0613d581072ed6eb53eb7b9754f33db807/blinker-1.7.0-py3-none-any.whl.metadata\n",20      "  Downloading blinker-1.7.0-py3-none-any.whl.metadata (1.9 kB)\n",21      "Collecting cachetools<6,>=4.0 (from streamlit)\n",22      "  Obtaining dependency information for cachetools<6,>=4.0 from https://files.pythonhosted.org/packages/a2/91/2d843adb9fbd911e0da45fbf6f18ca89d07a087c3daa23e955584f90ebf4/cachetools-5.3.2-py3-none-any.whl.metadata\n",23      "  Downloading cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB)\n",24      "Requirement already satisfied: click<9,>=7.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (8.0.4)\n",25      "Requirement already satisfied: importlib-metadata<8,>=1.4 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (6.0.0)\n",26      "Requirement already satisfied: numpy<2,>=1.19.3 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (1.24.3)\n",27      "Requirement already satisfied: packaging<24,>=16.8 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (23.1)\n",28      "Requirement already satisfied: pandas<3,>=1.3.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (2.0.3)\n",29      "Requirement already satisfied: pillow<11,>=7.1.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (9.4.0)\n",30      "Collecting protobuf<5,>=3.20 (from streamlit)\n",31      "  Obtaining dependency information for protobuf<5,>=3.20 from https://files.pythonhosted.org/packages/b3/81/0017aefacf23273d4efd1154ef958a27eed9c177c4cc09d2d4ba398fb47f/protobuf-4.25.2-cp37-abi3-macosx_10_9_universal2.whl.metadata\n",32      "  Downloading protobuf-4.25.2-cp37-abi3-macosx_10_9_universal2.whl.metadata (541 bytes)\n",33      "Requirement already satisfied: pyarrow>=6.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (11.0.0)\n",34      "Requirement already satisfied: python-dateutil<3,>=2.7.3 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (2.8.2)\n",35      "Requirement already satisfied: requests<3,>=2.27 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (2.31.0)\n",36      "Collecting rich<14,>=10.14.0 (from streamlit)\n",37      "  Obtaining dependency information for rich<14,>=10.14.0 from https://files.pythonhosted.org/packages/be/be/1520178fa01eabe014b16e72a952b9f900631142ccd03dc36cf93e30c1ce/rich-13.7.0-py3-none-any.whl.metadata\n",38      "  Downloading rich-13.7.0-py3-none-any.whl.metadata (18 kB)\n",39      "Requirement already satisfied: tenacity<9,>=8.1.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (8.2.2)\n",40      "Requirement already satisfied: toml<2,>=0.10.1 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (0.10.2)\n",41      "Requirement already satisfied: typing-extensions<5,>=4.3.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (4.7.1)\n",42      "Collecting tzlocal<6,>=1.1 (from streamlit)\n",43      "  Obtaining dependency information for tzlocal<6,>=1.1 from https://files.pythonhosted.org/packages/97/3f/c4c51c55ff8487f2e6d0e618dba917e3c3ee2caae6cf0fbb59c9b1876f2e/tzlocal-5.2-py3-none-any.whl.metadata\n",44      "  Downloading tzlocal-5.2-py3-none-any.whl.metadata (7.8 kB)\n",45      "Collecting validators<1,>=0.2 (from streamlit)\n",46      "  Obtaining dependency information for validators<1,>=0.2 from https://files.pythonhosted.org/packages/3a/0c/785d317eea99c3739821718f118c70537639aa43f96bfa1d83a71f68eaf6/validators-0.22.0-py3-none-any.whl.metadata\n",47      "  Downloading validators-0.22.0-py3-none-any.whl.metadata (4.7 kB)\n",48      "Collecting gitpython!=3.1.19,<4,>=3.0.7 (from streamlit)\n",49      "  Obtaining dependency information for gitpython!=3.1.19,<4,>=3.0.7 from https://files.pythonhosted.org/packages/45/c6/a637a7a11d4619957cb95ca195168759a4502991b1b91c13d3203ffc3748/GitPython-3.1.41-py3-none-any.whl.metadata\n",50      "  Downloading GitPython-3.1.41-py3-none-any.whl.metadata (14 kB)\n",51      "Collecting pydeck<1,>=0.8.0b4 (from streamlit)\n",52      "  Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)\n",53      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.8/4.8 MB\u001b[0m \u001b[31m1.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",54      "\u001b[?25hRequirement already satisfied: tornado<7,>=6.0.3 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from streamlit) (6.3.2)\n",55      "Requirement already satisfied: jinja2 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from altair<6,>=4.0->streamlit) (3.1.2)\n",56      "Requirement already satisfied: jsonschema>=3.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from altair<6,>=4.0->streamlit) (4.17.3)\n",57      "Requirement already satisfied: toolz in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from altair<6,>=4.0->streamlit) (0.12.0)\n",58      "Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.19,<4,>=3.0.7->streamlit)\n",59      "  Obtaining dependency information for gitdb<5,>=4.0.1 from https://files.pythonhosted.org/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl.metadata\n",60      "  Downloading gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)\n",61      "Requirement already satisfied: zipp>=0.5 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from importlib-metadata<8,>=1.4->streamlit) (3.11.0)\n",62      "Requirement already satisfied: pytz>=2020.1 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from pandas<3,>=1.3.0->streamlit) (2023.3.post1)\n",63      "Requirement already satisfied: tzdata>=2022.1 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from pandas<3,>=1.3.0->streamlit) (2023.3)\n",64      "Requirement already satisfied: six>=1.5 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from python-dateutil<3,>=2.7.3->streamlit) (1.16.0)\n",65      "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from requests<3,>=2.27->streamlit) (2.0.4)\n",66      "Requirement already satisfied: idna<4,>=2.5 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from requests<3,>=2.27->streamlit) (3.4)\n",67      "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from requests<3,>=2.27->streamlit) (1.26.16)\n",68      "Requirement already satisfied: certifi>=2017.4.17 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from requests<3,>=2.27->streamlit) (2023.11.17)\n",69      "Requirement already satisfied: markdown-it-py>=2.2.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from rich<14,>=10.14.0->streamlit) (2.2.0)\n",70      "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from rich<14,>=10.14.0->streamlit) (2.15.1)\n",71      "Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.19,<4,>=3.0.7->streamlit)\n",72      "  Obtaining dependency information for smmap<6,>=3.0.1 from https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl.metadata\n",73      "  Downloading smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)\n",74      "Requirement already satisfied: MarkupSafe>=2.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from jinja2->altair<6,>=4.0->streamlit) (2.1.1)\n",75      "Requirement already satisfied: attrs>=17.4.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (22.1.0)\n",76      "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (0.18.0)\n",77      "Requirement already satisfied: mdurl~=0.1 in /Users/catherinemulyadi/anaconda3/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich<14,>=10.14.0->streamlit) (0.1.0)\n",78      "Downloading streamlit-1.30.0-py2.py3-none-any.whl (8.4 MB)\n",79      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.4/8.4 MB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",80      "\u001b[?25hDownloading altair-5.2.0-py3-none-any.whl (996 kB)\n",81      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m996.9/996.9 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",82      "\u001b[?25hDownloading blinker-1.7.0-py3-none-any.whl (13 kB)\n",83      "Downloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)\n",84      "Downloading GitPython-3.1.41-py3-none-any.whl (196 kB)\n",85      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m196.4/196.4 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",86      "\u001b[?25hDownloading protobuf-4.25.2-cp37-abi3-macosx_10_9_universal2.whl (394 kB)\n",87      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m394.2/394.2 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",88      "\u001b[?25hDownloading rich-13.7.0-py3-none-any.whl (240 kB)\n",89      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m240.6/240.6 kB\u001b[0m \u001b[31m2.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",90      "\u001b[?25hDownloading tzlocal-5.2-py3-none-any.whl (17 kB)\n",91      "Downloading validators-0.22.0-py3-none-any.whl (26 kB)\n",92      "Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)\n",93      "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.7/62.7 kB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",94      "\u001b[?25hDownloading smmap-5.0.1-py3-none-any.whl (24 kB)\n",95      "Installing collected packages: validators, tzlocal, smmap, protobuf, cachetools, blinker, rich, pydeck, gitdb, gitpython, altair, streamlit\n",96      "Successfully installed altair-5.2.0 blinker-1.7.0 cachetools-5.3.2 gitdb-4.0.11 gitpython-3.1.41 protobuf-4.25.2 pydeck-0.8.1b0 rich-13.7.0 smmap-5.0.1 streamlit-1.30.0 tzlocal-5.2 validators-0.22.0\n",97      "Note: you may need to restart the kernel to use updated packages.\n"98     ]99    }100   ],101   "source": [102    "%pip install streamlit"103   ]104  },105  {106   "cell_type": "code",107   "execution_count": 5,108   "metadata": {},109   "outputs": [],110   "source": [111    "import streamlit as st\n",112    "import numpy as py\n",113    "import pandas as pd\n"114   ]115  }116 ],117 "metadata": {118  "kernelspec": {119   "display_name": "base",120   "language": "python",121   "name": "python3"122  },123  "language_info": {124   "codemirror_mode": {125    "name": "ipython",126    "version": 3127   },128   "file_extension": ".py",129   "mimetype": "text/x-python",130   "name": "python",131   "nbconvert_exporter": "python",132   "pygments_lexer": "ipython3",133   "version": "3.11.5"134  }135 },136 "nbformat": 4,137 "nbformat_minor": 2138}139