File size: 328 Bytes
03c1af1
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import requests

def call_entity_property_extract(zh_question):
    response = requests.post("https://svjack-entity-property-extractor-zh.hf.space/run/predict", json={
  "data": [
    zh_question,
    ]}).json()
    data = response["data"]
    if data:
        data = data[0]
        pass
    else:
        pass
    return data