Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,15 @@ import pandas as pd
|
|
| 2 |
import yfinance as yf
|
| 3 |
import numpy as np
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
-
import gradio as gr
|
| 6 |
import io
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
|
| 9 |
try:
|
|
|
|
| 2 |
import yfinance as yf
|
| 3 |
import numpy as np
|
| 4 |
import matplotlib.pyplot as plt
|
|
|
|
| 5 |
import io
|
| 6 |
+
import gradio as gr
|
| 7 |
+
|
| 8 |
+
def greet(name):
|
| 9 |
+
return f"Hello, {name}!"
|
| 10 |
+
|
| 11 |
+
app = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 12 |
+
app.launch()
|
| 13 |
+
|
| 14 |
|
| 15 |
def sma_crossover_strategy(initial_budget, start_date, end_date, ticker):
|
| 16 |
try:
|