Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.14.0
ENV
- create python -m venv .venv
- activate .venv\Scripts\activate
REQUIREMENTS.TXT
- generate minimal pipreqs . --force --ignore .venv
- install pip install -r requirements.txt
- re-generate pip freeze > requirements.txt
- run application gradio app.py o python app.py
- manually install missing packages pip install package_name
BEWARE!!!!!!!!!!!! when deploying on LINUX remove pywin
PUBBLICAZIONE SU HUGGING FACE
- Create a new Space SDK GRADIO BLANK
- git clone https://huggingface.co/spaces/StefanoDUrso/ELI #clone the EMPTY gradio project on a local HIGGINGFACE folder
- cd into the new HUGGINGFACE folder
- git remote add github https://github.com/paisleypark3121/ELI.git #add the GITHUB repository as new REMOTE
- git remote -v #this to verify the remotes; this is the output:
- origin https://huggingface.co/spaces/StefanoDUrso/ELI (fetch)
- origin https://huggingface.co/spaces/StefanoDUrso/ELI (push)
- github https://github.com/paisleypark3121/ELI.git (fetch)
- github https://github.com/paisleypark3121/ELI.git (push)
- git pull github main --allow-unrelated-histories #downloads all GITHUB code into the HUGGINGFACE folder
- git add .
- git commit -m "Sync GitHub with Hugging Face"
- git push origin main
Everytime we want to sync the code that we pushed into GITHUB we need to:
- cd into the HUGGINGFACE folder
- git pull github main #it pulls all the new code pushed into GITHUB
- git push origin main #it pushes the code into HUGGINGFACE space
REPLIT
run = ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "120", "app:app"] entrypoint = "app.py" modules = ["python-3.12"]
hidden = [".pythonlibs"]
[nix] channel = "stable-24_05"
[deployment] run = ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "120", "app:app"] deploymentTarget = "cloudrun"
[[ports]] localPort = 5000 externalPort = 80