Skip to content

huggingface

How to deploy a Streamlit Application on Hugging Face

In this guide, we'll walk through the steps to deploy a Streamlit app using the Hugging Face platform. For demonstration purposes, we'll create an app that utilizes the Python module Pix2Tex. Users will be able to upload an image and get the corresponding LaTeX formula along with a rendered version.

Prerequisites

  1. Create a virtual environment:
python3 -m venv myenv
source myenv/bin/activate
python -m venv myenv
./myenv/Scripts/activate