Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 += "
|
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="
|
430 |
),
|
431 |
gr.Slider(
|
432 |
minimum=1,
|
@@ -437,7 +437,7 @@ server = gr.Interface(
|
|
437 |
info="由于令牌长度限制,建议输入2。"
|
438 |
),
|
439 |
gr.Checkbox(
|
440 |
-
label="
|
441 |
value=True,
|
442 |
info="如果勾选,则考虑公司最新季度报告的基本财务状况。"
|
443 |
)
|
@@ -450,7 +450,7 @@ server = gr.Interface(
|
|
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**
|
|
|
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**
|