Spaces:
Runtime error
Runtime error
fff
Browse files
main.py
CHANGED
@@ -24,7 +24,11 @@ app = FastAPI()
|
|
24 |
|
25 |
@app.get("/")
|
26 |
def read_root():
|
27 |
-
return {
|
|
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
def get_news(ticker):
|
|
|
24 |
|
25 |
@app.get("/")
|
26 |
def read_root():
|
27 |
+
return {
|
28 |
+
"message": "Hello, Please type a ticker at the end of the URL to get the stock sentiment.",
|
29 |
+
"format": "https://yaakovy-fin-proj-docker.hf.space/ticker/[TICKER]",
|
30 |
+
"example": "https://yaakovy-fin-proj-docker.hf.space/ticker/msft",
|
31 |
+
}
|
32 |
|
33 |
|
34 |
def get_news(ticker):
|