Spaces:
Sleeping
Sleeping
Update helper_functions_api.py
Browse files- helper_functions_api.py +3 -3
helper_functions_api.py
CHANGED
@@ -128,9 +128,9 @@ def remove_stopwords(text):
|
|
128 |
return ' '.join(filtered_text)
|
129 |
|
130 |
def rephrase_content(content, query):
|
131 |
-
return together_response(f"You are an information retriever,ignore everything you know, return only the\
|
132 |
-
|
133 |
-
, using the scraped context:{{{limit_tokens(content)}}}")
|
134 |
|
135 |
class Scraper:
|
136 |
def __init__(self, user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"):
|
|
|
128 |
return ' '.join(filtered_text)
|
129 |
|
130 |
def rephrase_content(content, query):
|
131 |
+
return together_response(f"You are an information retriever and summarizer,ignore everything you know, return only the\
|
132 |
+
factual information regarding the query: {{{query}}} into a maximum of {500} words. Output should be concise chunks of \
|
133 |
+
paragraphs or tables or both, ignore links, using the scraped context:{{{limit_tokens(content)}}}")
|
134 |
|
135 |
class Scraper:
|
136 |
def __init__(self, user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"):
|