mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Rebrand to FastRTC (#60)
* Add code * add code * add code * Rename messages * rename * add code * Add demo * docs + demos + bug fixes * add code * styles * user guide * Styles * Add code * misc docs updates * print nit * whisper + pr * url for images * whsiper update * Fix bugs * remove demo files * version number * Fix pypi readme * Fix * demos * Add llama code editor * Update llama code editor and object detection cookbook * Add more cookbook demos * add code * Fix links for PR deploys * add code * Fix the install * add tts * TTS docs * Typo * Pending bubbles for reply on pause * Stream redesign (#63) * better error handling * Websocket error handling * add code --------- Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local> * remove docs from dist * Some docs typos * more typos * upload changes + docs * docs * better phone * update docs * add code * Make demos better * fix docs + websocket start_up * remove mention of FastAPI app * fastphone tweaks * add code * ReplyOnStopWord fixes * Fix cookbook * Fix pypi readme * add code * bump versions * sambanova cookbook * Fix tags * Llm voice chat * kyutai tag * Add error message to all index.html * STT module uses Moonshine * Not required from typing extensions * fix llm voice chat * Add vpn warning * demo fixes * demos * Add more ui args and gemini audio-video * update cookbook * version 9 --------- Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
This commit is contained in:
57
justfile
Normal file
57
justfile
Normal file
@@ -0,0 +1,57 @@
|
||||
# Upload a single demo space
|
||||
default:
|
||||
@just --list
|
||||
|
||||
upload path:
|
||||
python upload_space.py demo/{{path}}
|
||||
|
||||
# Upload all demo spaces
|
||||
upload-all:
|
||||
python upload_space.py demo --all
|
||||
|
||||
# Run a demo with uvicorn
|
||||
run name:
|
||||
uvicorn demo.{{name}}.app:app --port 8000
|
||||
|
||||
# Run the gradio ui for a demo
|
||||
gradio name:
|
||||
MODE=UI python demo/{{name}}/app.py
|
||||
|
||||
# Run a demo with phone mode
|
||||
phone name:
|
||||
MODE=PHONE python demo/{{name}}/app.py
|
||||
|
||||
call name:
|
||||
MODE=PHONE python demo/{{name}}/app.py
|
||||
|
||||
# Upload the latest wheel file to PyPI using twine
|
||||
publish:
|
||||
#!/usr/bin/env python
|
||||
import glob
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Find all wheel files in dist directory
|
||||
wheels = glob.glob('dist/*.whl')
|
||||
if not wheels:
|
||||
print("No wheel files found in dist directory")
|
||||
exit(1)
|
||||
|
||||
# Sort by creation time to get the latest
|
||||
latest_wheel = max(wheels, key=os.path.getctime)
|
||||
print(f"Uploading {latest_wheel}")
|
||||
os.system(f"twine upload {latest_wheel}")
|
||||
|
||||
|
||||
# Build the package
|
||||
build:
|
||||
gradio cc build --no-generate-docs
|
||||
|
||||
# Format the code
|
||||
format:
|
||||
ruff format .
|
||||
ruff check --fix .
|
||||
ruff check --select I --fix .
|
||||
|
||||
docs:
|
||||
mkdocs serve -a localhost:8081
|
||||
Reference in New Issue
Block a user