Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -156,12 +156,9 @@ def generate_summary(info, ratios):
|
|
156 |
return summarizer(report, max_length=250, min_length=100, do_sample=False)[0]['summary_text']
|
157 |
|
158 |
def answer_investing_question(question):
|
159 |
-
prompt =
|
160 |
-
|
161 |
-
|
162 |
-
f"Be conversational and encouraging."
|
163 |
-
)
|
164 |
-
return chat_model(prompt)[0]['generated_text']
|
165 |
|
166 |
def stock_research(symbol, eps=5.0, growth=0.1, book=500000000):
|
167 |
info = get_company_info(symbol)
|
|
|
156 |
return summarizer(report, max_length=250, min_length=100, do_sample=False)[0]['summary_text']
|
157 |
|
158 |
def answer_investing_question(question):
|
159 |
+
prompt = f"Answer simply and encouragingly: {question}"
|
160 |
+
response = chat_model(prompt)[0]['generated_text']
|
161 |
+
return response
|
|
|
|
|
|
|
162 |
|
163 |
def stock_research(symbol, eps=5.0, growth=0.1, book=500000000):
|
164 |
info = get_company_info(symbol)
|