mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 17:31:53 +00:00
i18n
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
20
openbb_terminal/forecast/whisper_view.py
Normal file
20
openbb_terminal/forecast/whisper_view.py
Normal file
@@ -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():
|
||||
2
openbb_terminal/miscellaneous/i18n/en.yml
vendored
2
openbb_terminal/miscellaneous/i18n/en.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user