Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,13 @@ from cashflow import fetch_cashflow
|
|
| 10 |
from dividend import fetch_dividend
|
| 11 |
from split import fetch_split
|
| 12 |
from other import fetch_other
|
| 13 |
-
|
| 14 |
# --- Main UI function ---
|
| 15 |
def fetch_data(symbol, req_type):
|
| 16 |
req_type = req_type.lower()
|
| 17 |
-
if req_type == "
|
|
|
|
|
|
|
| 18 |
return fetch_daily(symbol,"NSE")
|
| 19 |
elif req_type == "intraday":
|
| 20 |
return fetch_intraday(symbol)
|
|
@@ -45,6 +47,7 @@ iface = gr.Interface(
|
|
| 45 |
gr.Dropdown(
|
| 46 |
label="Request Type",
|
| 47 |
choices=[
|
|
|
|
| 48 |
"info",
|
| 49 |
"intraday",
|
| 50 |
"daily",
|
|
|
|
| 10 |
from dividend import fetch_dividend
|
| 11 |
from split import fetch_split
|
| 12 |
from other import fetch_other
|
| 13 |
+
from index import fetch_index
|
| 14 |
# --- Main UI function ---
|
| 15 |
def fetch_data(symbol, req_type):
|
| 16 |
req_type = req_type.lower()
|
| 17 |
+
if req_type == "index":
|
| 18 |
+
return fetch_index()
|
| 19 |
+
elif req_type == "daily":
|
| 20 |
return fetch_daily(symbol,"NSE")
|
| 21 |
elif req_type == "intraday":
|
| 22 |
return fetch_intraday(symbol)
|
|
|
|
| 47 |
gr.Dropdown(
|
| 48 |
label="Request Type",
|
| 49 |
choices=[
|
| 50 |
+
"index",
|
| 51 |
"info",
|
| 52 |
"intraday",
|
| 53 |
"daily",
|