Spaces:
Sleeping
Sleeping
Update app.py
#1
by
BaoKhuong
- opened
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def analyze_stock(ticker):
|
|
| 24 |
|
| 25 |
# Call OpenAI chat model
|
| 26 |
response = client.chat.completions.create(
|
| 27 |
-
model="gpt-
|
| 28 |
messages=[{"role": "user", "content": prompt}]
|
| 29 |
)
|
| 30 |
|
|
@@ -49,7 +49,7 @@ demo = gr.Interface(
|
|
| 49 |
inputs=gr.Textbox(label="Enter Stock Ticker (e.g., AAPL)"),
|
| 50 |
outputs=gr.Textbox(label="Agent Recommendation"),
|
| 51 |
title="π AI Stock Advisor Agent",
|
| 52 |
-
description="Enter a stock ticker to get GPT-
|
| 53 |
)
|
| 54 |
|
| 55 |
demo.launch()
|
|
|
|
| 24 |
|
| 25 |
# Call OpenAI chat model
|
| 26 |
response = client.chat.completions.create(
|
| 27 |
+
model="gpt-5-mini-2025-08-07",
|
| 28 |
messages=[{"role": "user", "content": prompt}]
|
| 29 |
)
|
| 30 |
|
|
|
|
| 49 |
inputs=gr.Textbox(label="Enter Stock Ticker (e.g., AAPL)"),
|
| 50 |
outputs=gr.Textbox(label="Agent Recommendation"),
|
| 51 |
title="π AI Stock Advisor Agent",
|
| 52 |
+
description="Enter a stock ticker to get GPT-5-powered insights and a recommendation"
|
| 53 |
)
|
| 54 |
|
| 55 |
demo.launch()
|