pm6six commited on
Commit
24b8531
·
verified ·
1 Parent(s): f10d0ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,7 +5,6 @@ import matplotlib.pyplot as plt
5
  import io
6
  import gradio as gr
7
 
8
-
9
  def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
10
  try:
11
  df = yf.download(ticker, start=start_date, end=end_date, progress=False)
@@ -71,7 +70,6 @@ def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
71
 
72
  return plot_file, results
73
 
74
-
75
  # Define Gradio App
76
  with gr.Blocks() as app:
77
  gr.Markdown("# SMA Crossover Trading Strategy Simulator")
@@ -96,5 +94,6 @@ with gr.Blocks() as app:
96
  )
97
 
98
  if __name__ == "__main__":
99
- app.launch(share=True)
 
100
 
 
5
  import io
6
  import gradio as gr
7
 
 
8
  def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
9
  try:
10
  df = yf.download(ticker, start=start_date, end=end_date, progress=False)
 
70
 
71
  return plot_file, results
72
 
 
73
  # Define Gradio App
74
  with gr.Blocks() as app:
75
  gr.Markdown("# SMA Crossover Trading Strategy Simulator")
 
94
  )
95
 
96
  if __name__ == "__main__":
97
+ app.launch()
98
+
99