Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|