Spaces:
Runtime error
Runtime error
# import sys | |
# sys.path.append('/Users/lamonkey/Desktop/portfolio_management') | |
import sys | |
# add pipeline to path | |
import os | |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__)))) | |
from pipeline import daily_update | |
import panel as pn | |
from datetime import timedelta | |
pn.state.schedule_task( | |
'daily_update', daily_update, period=timedelta(hours=24) | |
) | |
# pn.state.schedule_task( | |
# 'task', run, period=timedelta(seconds=3) | |
# ) | |
# update stock price and benchmark profile | |
# update() |