Spaces:
Runtime error
Runtime error
Update research_AI_Agent.py
Browse files- research_AI_Agent.py +4 -5
research_AI_Agent.py
CHANGED
|
@@ -126,11 +126,10 @@ def subsection_generator(state:State):
|
|
| 126 |
except:
|
| 127 |
continue
|
| 128 |
finally:
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
final_text.append(response)
|
| 134 |
|
| 135 |
all_info = '\n'.join(final_text)
|
| 136 |
max_token_limit = 10500
|
|
|
|
| 126 |
except:
|
| 127 |
continue
|
| 128 |
finally:
|
| 129 |
+
question_info = '\n'.join(text)
|
| 130 |
+
link_prompt = f"Please summarize the following text into 2-3 paragraphs that contains all the facts and figures. Reply only with the summary and nothing else, not even here's the summary and all. Here's the text: {question_info}"
|
| 131 |
+
response = invoke_big_llm(link_prompt).content
|
| 132 |
+
final_text.append(response)
|
|
|
|
| 133 |
|
| 134 |
all_info = '\n'.join(final_text)
|
| 135 |
max_token_limit = 10500
|