sohom004 commited on
Commit
93bc07b
·
verified ·
1 Parent(s): a42c64a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ resolver = get_resolver()
17
  @app.post(path="/api/v1/fastcoref")
18
  def get_coref_resolution(text:str = Body(...)) -> list[list[str]]:
19
  result = resolver.resolve_with_confidence(text)
20
- return result["preds"][0].get_clusters(as_strings=True)
21
 
22
  def get_container_cpu_count():
23
  try:
 
17
  @app.post(path="/api/v1/fastcoref")
18
  def get_coref_resolution(text:str = Body(...)) -> list[list[str]]:
19
  result = resolver.resolve_with_confidence(text)
20
+ return result
21
 
22
  def get_container_cpu_count():
23
  try: