Spaces:
Runtime error
Runtime error
Commit ·
53efd5f
1
Parent(s): d3a233a
fix: build
Browse filesFiles changed (3)
- Dockerfile+6-3
- requirements.txt+4-4
- server.py+2-2
1234456720 unmodified lines28293031323233343536373538394041# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your Dockerfile
FROM python:3.9FROM python:3.10-slim
# Install system dependencies for PlaywrightRUN apt-get update && apt-get install -y \20 unmodified linesWORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
# RUN pip install gradio[mcp] textblobRUN pip install --no-cache-dir -r requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt
# Install Playwright browsersRUN pip install playwrightRUN playwright install --with-depsRUN playwright installRUN playwright install firefox
COPY --chown=user . /app#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]1234356786 unmodified lines15161716171818gradio[mcp]textblobfastapi==0.104.1uvicorn==0.24.0playwright==1.40.0#playwright==1.40.0beautifulsoup4==4.12.2pymongo==4.6.0neo4j==5.15.06 unmodified linesreadability-lxml==0.8.1python-dotenv==1.0.0nltk==3.8.1spacy==3.7.2gradio[mcp]textblobspacy==3.7.230 unmodified lines3132333435343530 unmodified lines scrape_button.click(scrape, inputs=url_input, outputs=output)
if __name__ == "__main__": demo.launch(server_name="0.0.0.0", server_port=7860) #demo.launch(mcp_server=True) #demo.launch(server_name="0.0.0.0", server_port=7860) demo.launch(mcp_server=True, allowed_paths=["/"])Dockerfile+6-3
requirements.txt+4-4
server.py+2-2