Spaces:
Sleeping
Sleeping
Commit
·
5da89c6
1
Parent(s):
6ab47bd
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def get_data(category: str, lookback_days: float, user_query: str):
|
|
65 |
output = stuff_chain({"input_documents": relevant_docs, "context": user_query})
|
66 |
output_text = output["output_text"].split("<|end|>")[0]
|
67 |
print("LLM output:", output_text)
|
68 |
-
return f"# Your AI curated newsletter\n{output_text}\n\n
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
gr.Markdown(
|
|
|
65 |
output = stuff_chain({"input_documents": relevant_docs, "context": user_query})
|
66 |
output_text = output["output_text"].split("<|end|>")[0]
|
67 |
print("LLM output:", output_text)
|
68 |
+
return f"# Your AI curated newsletter\n{output_text}\n\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n## This newsletter was AI generated by filtering {len(docs)} articles down to the following relevant articles:\n\n{articles}"
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
gr.Markdown(
|