ELI-chatbot / readme.md
StefanoDUrso's picture
fixed issue: accidentally removed chat
17acdc3

A newer version of the Gradio SDK is available: 6.14.0

Upgrade

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

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