TAgent / app.py
3VVM's picture
Update app.py
1faaa53 verified
Raw History Blame Contribute Delete
472 Bytes
import gradio as gr
from tradingagents.graph.trading_graph import TradingAgentsGraph
from tradingagents.default_config import DEFAULT_CONFIG
def run(ticker, date):
ta = TradingAgentsGraph(debug=False, config=DEFAULT_CONFIG.copy())
_, decision = ta.propagate(ticker, date)
return str(decision)
gr.Interface(
run,
[gr.Text(label="Ticker", value="NVDA"), gr.Text(label="Date (YYYY-MM-DD)", value="2026-11-07")],
gr.Text(label="Decision"),
).launch()