Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
sdk: gradio
π§ Cho's Risk Scoring App (Powered by DSPy & Gradio)
A real-time risk evaluation tool for retail investors, built with LLM-based Chain-of-Thought (CoT) reasoning.
This app analyzes stock-related questions and visualizes risk scores across 6 dimensions using natural language inputs.
π How to Use
- Enter a natural language query like:
Is Tesla risky these days? μΌμ±μ μλ μ§κΈ κ³ νκ°λμ΄? - Click
Submit. - The app will automatically:
- Detect the stock ticker (US or Korea)
- Fetch recent Yahoo Finance headlines
- Run CoT-based risk scoring via OpenAI GPT-4o
- Display results as:
- π 1-Month price trend (Plotly)
- π° Headline list (HTML)
- π Risk breakdown bar chart (Matplotlib)
- π§ Detailed reasoning per risk category
π§ Risk Factors Evaluated
- Overvaluation
- Poor Earnings
- Financial Instability
- Theme Overheating
- Recurring Negatives
- FII Sell-off
π οΈ Tech Stack
Gradio: frontend UIDSPy: CoT prompting & reasoningyfinance: stock price and metadataYahoo RSS: finance news headlinesmatplotlib/plotly: data visualization
π Environment Variable (required)
This app uses OpenAI's GPT-4o via the DSPy framework.
You must define the following secret in Hugging Face:
OPENAI_API_KEY=sk-... β your actual OpenAI API key
Add it in your Hugging Face Space β Settings β Secrets.
π« About
Developed by HYU researcher Cho
Based on DSPy by Stanford NLP Group