ajndkr / lanarky

The web framework for building LLM microservices
https://lanarky.ajndkr.com/
MIT License
976 stars 74 forks source link

Can't get gradio testing to work #91

Closed lchoquel closed 1 year ago

lchoquel commented 1 year ago

Scenario

I'm trying the provided example from "conversation_chain.py". I use the following command: uvicorn app.conversation_chain:app --reload

Using the web template it works fine. But if I use the gradio endpoint, the form is displayed but whenever I send a query I get the following error:

Actual result

HTTP error occurred: 422 Client Error: Unprocessable Entity for url: http://localhost:8000/chat

Expected result

The chatbot should display a response from the chatbot as in the web template UI.

ajndkr commented 1 year ago

@lchoquel please install the latest version and try again. let me know if the issue still persists.

lchoquel commented 1 year ago

OK the example is working now, good job.

By the way I love this project, it's exactly what I need. Thanks a lot!

ajndkr commented 1 year ago

Glad you like it! If you have more ideas or think some essential features are missing, feel free to open a new issue!