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
123456720 unmodified lines2829303132333435363738# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your DockerfileFROM python:3.9# Install system dependencies for PlaywrightRUN apt-get update && apt-get install -y \20 unmodified linesWORKDIR /appCOPY --chown=user ./requirements.txt requirements.txt# RUN pip install gradio[mcp] textblobRUN pip install --no-cache-dir -r requirements.txt# Install Playwright browsersRUN playwright installCOPY --chown=user . /app#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]123456720 unmodified lines2829303132333435363738394041# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your DockerfileFROM python:3.10-slim# Install system dependencies for PlaywrightRUN apt-get update && apt-get install -y \20 unmodified linesWORKDIR /appCOPY --chown=user ./requirements.txt requirements.txt# RUN pip install gradio[mcp] textblobRUN pip install --no-cache-dir --upgrade -r requirements.txt# Install Playwright browsersRUN pip install playwrightRUN playwright install --with-depsRUN playwright install firefoxCOPY --chown=user . /app#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
1234566 unmodified lines131415161718fastapi==0.104.1uvicorn==0.24.0playwright==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]textblob123456786 unmodified lines15161718gradio[mcp]textblobfastapi==0.104.1uvicorn==0.24.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.2
30 unmodified lines313233343530 unmodified linesscrape_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)30 unmodified lines313233343530 unmodified linesscrape_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, allowed_paths=["/"])
Dockerfile+6-3
requirements.txt+4-4
server.py+2-2