sohom004 commited on
Commit
14f66d1
·
verified ·
1 Parent(s): 9518c9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -12,6 +12,8 @@ app = FastAPI()
12
  def get_resolver():
13
  return CoreferenceResolver()
14
 
 
 
15
  @app.post(path="/api/v1/fastcoref")
16
  def get_coref_resolution(text:str = Body(...)):
17
  #result = resolver.resolve_with_confidence(text)
 
12
  def get_resolver():
13
  return CoreferenceResolver()
14
 
15
+ resolver = get_resolver()
16
+
17
  @app.post(path="/api/v1/fastcoref")
18
  def get_coref_resolution(text:str = Body(...)):
19
  #result = resolver.resolve_with_confidence(text)