pm6six commited on
Commit
672b2d6
·
verified ·
1 Parent(s): 4fd5e87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 with a specific port
133
- app.launch(server_port=7861, share=True)
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