fabsta/structured_output_extractor
0
Setup
Run the commands below on your local machine.
git clone https://github.com/AnswerDotAI/fh-deploy.git
cd huggingface
pip install -r requirements.txtRun the app locally
python main.pyDeploying to HuggingFace
- Create a Huggingface account.
- Go to your account settings and create an access token with write access. Keep this token safe and don't share it.
- Create a
HF_TOKENenvironment variable (e.g. runexport HF_TOKEN=YOUR_API_TOKEN). - HuggingFace Spaces are configured using a YAML block at the top of the app's README.md. To configure the HuggingFace Space for your app, add the YAML below to the top of THIS README.md file.
---
title: FastHTML on HuggingFace!
emoji: ๐ค
colorFrom: indigo
colorTo: green
sdk: docker
pinned: false
---- Run
fh_hf_deploy NAME_OF_YOUR_APP
Note:
- By default, your app will be public. To create a private app use
--private truewhen runningfh_hf_deploy. - For more information on how your app is being deployed on HuggingFace visit the fasthtml-hf repo
