FastChat
FastChat copied to clipboard
Fix gradio web server demo error
trafficstars
Why are these changes needed?
A quick fix for the single-model Gradio web server. The original code was passing a list to the Context object, which caused an AttributeError. This PR corrects that issue by ensuring the proper Context object is passed.
Related issue number (if applicable):
#3595
Checks:
- [x] I've run
format.shto lint the changes in this PR. - [x] I've included any necessary doc changes. (No doc changes required.)
- [x] I've ensured that the relevant tests are passing (if applicable).
Test:
Follow the instructions here, and the error no longer occurs after running the controller, model worker, and Gradio worker, then opening the browser.