text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

i cant get the api to work at all even on colab notebooks

Open danpizzy opened this issue 1 year ago • 1 comments

Describe the bug

so ive tried getting the api to work and no matter what i try even after enabling api in both gradio and python i get this API Docs

No named API Routes found for http://127.0.0.1:7860/

To expose an API endpoint of your app in this page, set the api_name parameter of the event listener. For more information, visit the API Page guide . To hide the API documentation button and this page, set show_api=False in the Blocks.launch() method. and the other api endpoint generates a jsondecode error everything else works fine but this

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

running with python --extensions api --listener --no-streaming

Screenshot

No response

Logs

API Docs

No named API Routes found for http://127.0.0.1:7860/

To expose an API endpoint of your app in this page, set the api_name parameter of the event listener.
For more information, visit the [API Page guide](https://gradio.app/sharing_your_app/#api-page) . To hide the API documentation

System Info

windows and linux

danpizzy avatar Apr 19 '23 06:04 danpizzy

If you're using the API extension the default port is 5000 and the endpoint is /api/v1/generate

Reezlaw avatar Apr 20 '23 13:04 Reezlaw

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.

github-actions[bot] avatar May 20 '23 23:05 github-actions[bot]