Spaces:
Runtime error
Runtime error
Chintan Donda
commited on
Commit
•
28bd523
1
Parent(s):
2b3239a
Adding Data source info for Mandi Price and Weather widgets on Gradio Front-end app
Browse files
app.py
CHANGED
@@ -568,7 +568,7 @@ with gr.Blocks(title='KKMS-Smart-Search-Demo') as demo:
|
|
568 |
|
569 |
|
570 |
with gr.Column(scale=1, min_width=600):
|
571 |
-
mandi_price = gr.Textbox(label=f"Mandi Price is:", value=dom.mandi_price, interactive=False)
|
572 |
|
573 |
commodity.change(
|
574 |
dom.click_handler_for_mandi_price,
|
@@ -607,7 +607,7 @@ with gr.Blocks(title='KKMS-Smart-Search-Demo') as demo:
|
|
607 |
)
|
608 |
|
609 |
# Get weather forecast on district selection event
|
610 |
-
district_weather = gr.Textbox(label=f"Weather forecast is:", interactive=False)
|
611 |
district.change(
|
612 |
dom.click_handler_for_weather_forecast_district,
|
613 |
[state, district],
|
@@ -660,7 +660,7 @@ with gr.Blocks(title='KKMS-Smart-Search-Demo') as demo:
|
|
660 |
|
661 |
with gr.Column(scale=1, min_width=600):
|
662 |
with gr.Tab(label='Weather Info'):
|
663 |
-
weather = gr.Textbox(label=f"Current weather is:", interactive=False)
|
664 |
district.change(
|
665 |
dom.click_handler_for_get_weather,
|
666 |
district,
|
|
|
568 |
|
569 |
|
570 |
with gr.Column(scale=1, min_width=600):
|
571 |
+
mandi_price = gr.Textbox(label=f"Mandi Price is: [Data Source: https://enam.gov.in/web/dashboard/trade-data]", value=dom.mandi_price, interactive=False)
|
572 |
|
573 |
commodity.change(
|
574 |
dom.click_handler_for_mandi_price,
|
|
|
607 |
)
|
608 |
|
609 |
# Get weather forecast on district selection event
|
610 |
+
district_weather = gr.Textbox(label=f"Weather forecast is: [Data Source: https://nwp.imd.gov.in/blf/blf_temp]", interactive=False)
|
611 |
district.change(
|
612 |
dom.click_handler_for_weather_forecast_district,
|
613 |
[state, district],
|
|
|
660 |
|
661 |
with gr.Column(scale=1, min_width=600):
|
662 |
with gr.Tab(label='Weather Info'):
|
663 |
+
weather = gr.Textbox(label=f"Current weather is: [Data Source: Google Weather website]", interactive=False)
|
664 |
district.change(
|
665 |
dom.click_handler_for_get_weather,
|
666 |
district,
|