diff --git a/openbb_terminal/forecast/forecast_controller.py b/openbb_terminal/forecast/forecast_controller.py index fca6ed08c11..368c880f78e 100644 --- a/openbb_terminal/forecast/forecast_controller.py +++ b/openbb_terminal/forecast/forecast_controller.py @@ -71,6 +71,7 @@ from openbb_terminal.forecast import ( helpers, trans_view, nhits_view, + whisper_view, ) from openbb_terminal.common import common_model @@ -133,6 +134,7 @@ class ForecastController(BaseController): "season", "which", "nhits", + "whisper", ] pandas_plot_choices = [ "line", @@ -303,6 +305,9 @@ class ForecastController(BaseController): mt.add_cmd("tcn", self.files) mt.add_cmd("trans", self.files) mt.add_cmd("tft", self.files) + mt.add_raw("\n") + mt.add_info("_misc_") + mt.add_cmd("whisper", self.files) console.print(text=mt.menu_text, menu="Forecast") diff --git a/openbb_terminal/forecast/whisper_view.py b/openbb_terminal/forecast/whisper_view.py new file mode 100644 index 00000000000..97d8d02c233 --- /dev/null +++ b/openbb_terminal/forecast/whisper_view.py @@ -0,0 +1,20 @@ +"""Utilize OpenAI Whisper to transcribe and summarize text""" +__docformat__ = "numpy" + +import logging +from typing import Union, Optional, List +from datetime import datetime + +import pandas as pd +import matplotlib.pyplot as plt + +from openbb_terminal.decorators import log_start_end +from openbb_terminal.forecast import helpers +from openbb_terminal.rich_config import console + +logger = logging.getLogger(__name__) +# pylint: disable=too-many-arguments + + +# @log_start_end(log=logger) +# def transcribe_and_summarize(): diff --git a/openbb_terminal/miscellaneous/i18n/en.yml b/openbb_terminal/miscellaneous/i18n/en.yml index 679df15c76e..c80eeb1eb4f 100644 --- a/openbb_terminal/miscellaneous/i18n/en.yml +++ b/openbb_terminal/miscellaneous/i18n/en.yml @@ -1063,4 +1063,6 @@ en: forecast/trans: Transformer Network (feat. Past covariates) forecast/tft: Temporal Fusion Transformer Network(feat. Past covariates) forecast/nhits: Neural Hierarchical Interpolation (feat. Past covariates) + forecast/_misc_: Miscellaneous AI Tools + forecast/whisper: Transcribe, translate and summarize videos forecast/_comingsoon_: Coming Soon