CCockrum commited on
Commit
ab1fab6
·
verified ·
1 Parent(s): 52c8526

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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
- f"Explain the following investing question clearly and simply for a beginner:\n\n"
161
- f"{question}\n\n"
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)