dygoo commited on
Commit
45ed981
·
verified ·
1 Parent(s): 4f127e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,10 +134,10 @@ def extract_entities(search_results: str) -> str:
134
  search_results = trunc[:last_period + 1] if last_period > 3000 else trunc
135
 
136
  prompt = f"""Extract all named entities that are described as founders of the searched business from the following text.
137
- Return a JSON object with two keys:
138
  - "people": a list of names of people mentioned
139
  - "organizations": a list of organization names mentioned
140
- Respond only with valid JSON. Do not include any explanations, comments, or additional formatting.
141
  Text:
142
  {search_results}"""
143
 
 
134
  search_results = trunc[:last_period + 1] if last_period > 3000 else trunc
135
 
136
  prompt = f"""Extract all named entities that are described as founders of the searched business from the following text.
137
+ Return a JSON object with the following two keys:
138
  - "people": a list of names of people mentioned
139
  - "organizations": a list of organization names mentioned
140
+ Respond only with valid JSON. Do not include any explanations, comments, or additional formatting. Double check that you included all founders. Double check that the founders you included are indeed founders of the business described in the search.
141
  Text:
142
  {search_results}"""
143