abhicodes commited on
Commit
ede3397
·
1 Parent(s): 48403b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,6 +18,9 @@ def filter_data(dataset_name='', name_x='', name_y='', start_date=''):
18
  return filtered_df
19
 
20
 
 
 
 
21
  # Define the input components for the Gradio interface
22
  dataset_selector = gr.Dropdown(choices=list(datasets.keys()), label='Select Dataset')
23
  name_x_filter = gr.Textbox(label='Player Name', placeholder='eg. Virat Kohli')
@@ -25,7 +28,7 @@ name_y_filter = gr.Textbox(label='Match Detail', placeholder='eg. India v Austra
25
  start_date_filter = gr.Textbox(label='Match Date', placeholder='eg. 2015-10-13')
26
 
27
  # Create the Gradio interface
28
- iface = gr.Interface(fn=filter_data, inputs=[dataset_selector, name_x_filter, name_y_filter, start_date_filter], outputs='dataframe')
29
 
30
  # Launch the interface
31
  iface.launch()
 
18
  return filtered_df
19
 
20
 
21
+ title = "T20i Score Prediction"
22
+ description = "Predict the score of a T20i match."
23
+
24
  # Define the input components for the Gradio interface
25
  dataset_selector = gr.Dropdown(choices=list(datasets.keys()), label='Select Dataset')
26
  name_x_filter = gr.Textbox(label='Player Name', placeholder='eg. Virat Kohli')
 
28
  start_date_filter = gr.Textbox(label='Match Date', placeholder='eg. 2015-10-13')
29
 
30
  # Create the Gradio interface
31
+ iface = gr.Interface(fn=filter_data, inputs=[dataset_selector, name_x_filter, name_y_filter, start_date_filter], outputs='dataframe', title=title, description=description,)
32
 
33
  # Launch the interface
34
  iface.launch()