meg HF staff commited on
Commit
249104f
1 Parent(s): 7689092

adds variables EvalRequest is searching for

Browse files

EvalRequest initialization fails when called with **data, because **data in this demo can include `base_model` and `private`.

Files changed (1) hide show
  1. src/backend/manage_requests.py +2 -0
src/backend/manage_requests.py CHANGED
@@ -25,6 +25,8 @@ class EvalRequest:
25
  likes: Optional[int] = 0
26
  params: Optional[int] = None
27
  license: Optional[str] = ""
 
 
28
 
29
  def get_model_args(self):
30
  """Edit this function if you want to manage more complex quantization issues. You'll need to map it to
 
25
  likes: Optional[int] = 0
26
  params: Optional[int] = None
27
  license: Optional[str] = ""
28
+ base_model: Optional[str] = ""
29
+ private: Optional[bool] = False
30
 
31
  def get_model_args(self):
32
  """Edit this function if you want to manage more complex quantization issues. You'll need to map it to