LDanielBlueway commited on
Commit
a01b43c
·
verified ·
1 Parent(s): 22b3c6b

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -0
handler.py CHANGED
@@ -2,9 +2,12 @@ from typing import Dict, List, Any
2
  from io import BytesIO
3
  import base64
4
  import logging
 
 
5
 
6
  class EndpointHandler():
7
  def __init__(self, path=""):
 
8
 
9
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
  """
 
2
  from io import BytesIO
3
  import base64
4
  import logging
5
+ import uform
6
+
7
 
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
+ self.model, self.processor = uform.get_model('unum-cloud/uform-vl-multilingual-v2')
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
13
  """