Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def fetch_share_price(ticker:str)-> str: # it's important to specify the return
|
|
25 |
|
26 |
# Check if data was returned
|
27 |
if data.empty:
|
28 |
-
return f"No data found for ticker {ticker}
|
29 |
|
30 |
# Return the last available closing price
|
31 |
price = data.iloc[-1]['Close']
|
|
|
25 |
|
26 |
# Check if data was returned
|
27 |
if data.empty:
|
28 |
+
return f"No data found for ticker {ticker}"
|
29 |
|
30 |
# Return the last available closing price
|
31 |
price = data.iloc[-1]['Close']
|