FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

Fix gradio web server demo error

Open tsunghan-wu opened this issue 1 year ago • 0 comments
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.sh to 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.

tsunghan-wu avatar Oct 22 '24 22:10 tsunghan-wu