Download app.py from 3VVM/TAgent: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/3VVM/TAgent/resolve/main/app.py
- Command line
-
hf download hf://spaces/3VVM/TAgent/app.py
-
curl -L -o app.py https://huggingface.co/spaces/3VVM/TAgent/resolve/main/app.py
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() |