Phi-3-V / scripts /upload_pypi.sh
mmaaz60's picture
Adds code to host LLaVA-Phi-3 demo on HF space.
5920b49
raw
history blame contribute delete
387 Bytes
#!/bin/bash
# Step 0: Clean up
rm -rf dist
# Step 1: Change the package name to "llava-torch"
sed -i 's/name = "llava"/name = "llava-torch"/' pyproject.toml
# Step 2: Build the package
python -m build
# Step 3: Revert the changes in pyproject.toml to the original
sed -i 's/name = "llava-torch"/name = "llava"/' pyproject.toml
# Step 4: Upload to PyPI
python -m twine upload dist/*