Ver código fonte

Update API Usage (#310)

* Add Windows Setup Help

* Optimize documents/bootscripts for Windows User

* Correct some description

* Fix dependecies

* fish 1.2 webui & api

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix spelling

* Fix CUDA env

* Update api usage

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
spicysama 1 ano atrás
pai
commit
55ffbf3cff
2 arquivos alterados com 6 adições e 3 exclusões
  1. 1 2
      API_FLAGS.txt
  2. 5 1
      tools/post_api.py

+ 1 - 2
API_FLAGS.txt

@@ -1,7 +1,6 @@
 # --infer
 # --api
 --listen 0.0.0.0:8000 \
---llama-checkpoint-path "checkpoints/text2semantic-sft-medium-v1.1-4k.pth" \
---llama-config-name dual_ar_2_codebook_medium \
+--llama-checkpoint-path "checkpoints/fish-speech-1.2" \
 --decoder-checkpoint-path "checkpoints/fish-speech-1.2/firefly-gan-vq-fsq-4x1024-42hz-generator.pth" \
 --decoder-config-name firefly_gan_vq

+ 5 - 1
tools/post_api.py

@@ -30,7 +30,11 @@ if __name__ == "__main__":
     )
 
     parser.add_argument(
-        "--url", "-u", type=str, required=True, help="URL of the server"
+        "--url",
+        "-u",
+        type=str,
+        default="http://127.0.0.1:8000/v1/invoke",
+        help="URL of the server",
     )
     parser.add_argument(
         "--text", "-t", type=str, required=True, help="Text to be synthesized"