Hateshield-bn / app.py
sgAtdbd's picture
Initial deployment of HateShield backend
8ad9255
raw
history blame contribute delete
258 Bytes
import os
os.environ['TRANSFORMERS_CACHE'] = '/tmp/transformers_cache'
os.environ['HF_HOME'] = '/tmp/huggingface'
from main import app
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860) # HF Spaces uses port 7860