Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,9 @@ import numpy as np
|
|
| 5 |
import matplotlib.pyplot as plt
|
| 6 |
import gradio as gr
|
| 7 |
import os
|
| 8 |
-
os.system('pip install --upgrade gradio')
|
| 9 |
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
|
| 12 |
# Fetch the selected stock data using yfinance
|
|
@@ -129,6 +130,6 @@ with gr.Blocks() as app:
|
|
| 129 |
outputs=[portfolio_graph, summary_text, download_button],
|
| 130 |
)
|
| 131 |
|
| 132 |
-
# Launch the app
|
| 133 |
-
app.launch(
|
| 134 |
|
|
|
|
| 5 |
import matplotlib.pyplot as plt
|
| 6 |
import gradio as gr
|
| 7 |
import os
|
|
|
|
| 8 |
|
| 9 |
+
# Upgrade Gradio during runtime (optional, for redundancy)
|
| 10 |
+
os.system('pip install --upgrade gradio')
|
| 11 |
|
| 12 |
def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
|
| 13 |
# Fetch the selected stock data using yfinance
|
|
|
|
| 130 |
outputs=[portfolio_graph, summary_text, download_button],
|
| 131 |
)
|
| 132 |
|
| 133 |
+
# Launch the app
|
| 134 |
+
app.launch()
|
| 135 |
|