arabic-deployment

#1
by poiccard - opened
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -18,7 +18,7 @@ class EndpointHandler():
18
 
19
  # get inputs
20
  inputs = data.pop("inputs",data)
21
- text = self.prompt_eng.format_map({'Question':inputs})
22
 
23
  input_ids = self.tokenizer(text, return_tensors="pt").input_ids
24
  inputs = input_ids.to(self.device)
 
18
 
19
  # get inputs
20
  inputs = data.pop("inputs",data)
21
+ text = self.prompt_ar.format_map({'Question':inputs})
22
 
23
  input_ids = self.tokenizer(text, return_tensors="pt").input_ids
24
  inputs = input_ids.to(self.device)