Spaces:
Running
Running
Commit
·
e9ff3fa
1
Parent(s):
9e0683b
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def calc_fairprice_CDF(ticker):
|
|
| 126 |
previousClose = yfobj.get_info()['previousClose']
|
| 127 |
deviation = 100*(intrinsicvalue - previousClose) / previousClose
|
| 128 |
# return intrinsicvalue , previousClose , deviation
|
| 129 |
-
|
| 130 |
|
| 131 |
|
| 132 |
def calc_fairprice_DnetP(ticker):
|
|
@@ -174,7 +174,7 @@ def calc_fairprice_DnetP(ticker):
|
|
| 174 |
|
| 175 |
deviation = 100*(intrinsicvalue - previousClose) / previousClose
|
| 176 |
# return intrinsicvalue , previousClose , deviation
|
| 177 |
-
|
| 178 |
|
| 179 |
# tickers = ['AAPL', 'META', 'GOOG', 'IBM', 'MSFT','NKE','DLTR','DG']
|
| 180 |
# ticker = pn.widgets.Select(name='Ticker', options=tickers)
|
|
|
|
| 126 |
previousClose = yfobj.get_info()['previousClose']
|
| 127 |
deviation = 100*(intrinsicvalue - previousClose) / previousClose
|
| 128 |
# return intrinsicvalue , previousClose , deviation
|
| 129 |
+
return pn.widgets.StaticText(name='intrinsicvalue', value=str(intrinsicvalue))
|
| 130 |
|
| 131 |
|
| 132 |
def calc_fairprice_DnetP(ticker):
|
|
|
|
| 174 |
|
| 175 |
deviation = 100*(intrinsicvalue - previousClose) / previousClose
|
| 176 |
# return intrinsicvalue , previousClose , deviation
|
| 177 |
+
return pn.widgets.StaticText(name='intrinsicvalue', value=str(intrinsicvalue))
|
| 178 |
|
| 179 |
# tickers = ['AAPL', 'META', 'GOOG', 'IBM', 'MSFT','NKE','DLTR','DG']
|
| 180 |
# ticker = pn.widgets.Select(name='Ticker', options=tickers)
|