Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,4 @@
|
|
| 1 |
-
Here’s a full, drop-in **app.py** that:
|
| 2 |
|
| 3 |
-
* keeps the ticker search + portfolio table UX you liked
|
| 4 |
-
* shows the CML with **percent axes**
|
| 5 |
-
* builds a **1,000-row synthetic dataset** for your current universe
|
| 6 |
-
* gives a **single, clean suggestion** (based on Low/Medium/High risk) as **weights (%) and dollars (\$)**
|
| 7 |
-
* can optionally **re-rank** the suggestion with **finance embeddings** (FinLang)
|
| 8 |
-
|
| 9 |
-
```python
|
| 10 |
# app.py
|
| 11 |
import os, io, math, json, warnings, hashlib, random
|
| 12 |
warnings.filterwarnings("ignore")
|
|
@@ -659,4 +651,3 @@ with gr.Blocks(title="Efficient Portfolio Advisor") as demo:
|
|
| 659 |
|
| 660 |
if __name__ == "__main__":
|
| 661 |
demo.launch()
|
| 662 |
-
```
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
# app.py
|
| 3 |
import os, io, math, json, warnings, hashlib, random
|
| 4 |
warnings.filterwarnings("ignore")
|
|
|
|
| 651 |
|
| 652 |
if __name__ == "__main__":
|
| 653 |
demo.launch()
|
|
|