<jupyter_start><jupyter_text>드라이브 연결 및 패키지 설치<jupyter_code>from google.colab import drive
drive.mount('/content/drive')
!sudo apt-get install -y fonts-nanum
!sudo fc-cache -fv
!rm ~/.cache/matplotlib -rf
!pip install streamlit
!pip install pyngrok<jupyter_output><empty_output><jupyter_text>설치 후 런타임 재시작  ngrok 불러오기<jupyter_code>from pyngrok import ngrok
token = '' # 개인 토큰 받아서 실행
!ngrok authtoken token<jupyter_output><empty_output><jupyter_text>ngrok & streamlit 실행<jupyter_code>publ_url = ngrok.connect(addr = '8501')
publ_url
path = ''
!streamlit run path<jupyter_output><empty_output><jupyter_text>완료 후 종료<jupyter_code>ngrok.kill()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11561561561561562, 'fraction_numerical': 0.006006006006006006, 'mean_word_length': 7.662337662337662, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '171835', 'license': 'MIT', 'n_tokens_mistral': 310, 'n_tokens_neox': 352, 'n_words': 53, 'path': '4.prototype/streamlit_colab_ngrok.ipynb', 'repo_name': 'PpangPpang93/Final_project_bunjang', 'size': '666'}