Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from nse import *
|
| 3 |
from stock import *
|
|
|
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
# ======================================================
|
|
@@ -66,7 +67,7 @@ def fetch_data(mode, req_type, symbol, date_str):
|
|
| 66 |
|
| 67 |
if mode == "index":
|
| 68 |
if req_type == "nse_indices":
|
| 69 |
-
return
|
| 70 |
elif req_type == "nse_open":
|
| 71 |
return wrap(nse_open(symbol))
|
| 72 |
elif req_type == "nse_preopen":
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from nse import *
|
| 3 |
from stock import *
|
| 4 |
+
from indices_html import *
|
| 5 |
import pandas as pd
|
| 6 |
|
| 7 |
# ======================================================
|
|
|
|
| 67 |
|
| 68 |
if mode == "index":
|
| 69 |
if req_type == "nse_indices":
|
| 70 |
+
return build_indices_html()
|
| 71 |
elif req_type == "nse_open":
|
| 72 |
return wrap(nse_open(symbol))
|
| 73 |
elif req_type == "nse_preopen":
|