zhengr commited on
Commit
bd7e1fc
·
verified ·
1 Parent(s): ad0bb79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -371,7 +371,7 @@ def get_all_prompts_online(symbol, with_basics=True, max_news_perweek = 5, weeks
371
  if sampled_news:
372
  prompt += "\n".join(sampled_news)
373
  else:
374
- prompt += "No relative news reported."
375
 
376
  next_date = n_weeks_before(end_date, -1, format="%Y-%m-%d")
377
  end_date = pd.to_datetime(end_date).strftime("%Y-%m-%d")
@@ -426,7 +426,7 @@ server = gr.Interface(
426
  gr.Textbox(
427
  label="Symbol",
428
  value="600519",
429
- info="Companys from SZ50 are recommended"
430
  ),
431
  gr.Slider(
432
  minimum=1,
@@ -437,7 +437,7 @@ server = gr.Interface(
437
  info="由于令牌长度限制,建议输入2。"
438
  ),
439
  gr.Checkbox(
440
- label="Use Latest Basic Financials",
441
  value=True,
442
  info="如果勾选,则考虑公司最新季度报告的基本财务状况。"
443
  )
@@ -450,7 +450,7 @@ server = gr.Interface(
450
  label="响应"
451
  )
452
  ],
453
- title="FinGPT-Forecaster-Chinese",
454
  description="""This version allows the prediction based on the most current date. We will upgrade it to allow customized date soon.
455
 
456
  **The estimated time cost is 180s**
 
371
  if sampled_news:
372
  prompt += "\n".join(sampled_news)
373
  else:
374
+ prompt += "没有相关新闻报道。"
375
 
376
  next_date = n_weeks_before(end_date, -1, format="%Y-%m-%d")
377
  end_date = pd.to_datetime(end_date).strftime("%Y-%m-%d")
 
426
  gr.Textbox(
427
  label="Symbol",
428
  value="600519",
429
+ info="推荐来自上证50的公司开始尝试"
430
  ),
431
  gr.Slider(
432
  minimum=1,
 
437
  info="由于令牌长度限制,建议输入2。"
438
  ),
439
  gr.Checkbox(
440
+ label="使用最新的基本财务信息",
441
  value=True,
442
  info="如果勾选,则考虑公司最新季度报告的基本财务状况。"
443
  )
 
450
  label="响应"
451
  )
452
  ],
453
+ title="FinGPT-股票预测",
454
  description="""This version allows the prediction based on the most current date. We will upgrade it to allow customized date soon.
455
 
456
  **The estimated time cost is 180s**