Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import yfinance as yf | |
import datetime as dt | |
import xgboost as xgb | |
from sklearn.metrics import mean_squared_error | |
color_pal = sns.color_palette() | |
plt.style.use("fivethirtyeight") | |
app = FastAPI() | |
def read_root(): | |
return { | |
"message": "Hello, Please type a ticker at the end of the URL to get LAST TRADING HOUR FORCAST.", | |
"format": "https://yaakovy-lasthourforcast.hf.space/ticker/[TICKER]", | |
"example": "https://yaakovy-lasthourforcast.hf.space/ticker/msft", | |
} | |
def read_item(ticker: str): | |
return ticker | |