TOPSInfosol commited on
Commit
d3acaa5
·
verified ·
1 Parent(s): b99eda4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -233,6 +233,19 @@ with gr.Blocks() as demo:
233
  end = gr.DateTime("2021-01-05 00:00:00", label="Training data End date")
234
  apply_btn = gr.Button("Visualize Data", scale=0)
235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  with gr.Row():
237
  historical_data_plot = gr.Plot()
238
 
 
233
  end = gr.DateTime("2021-01-05 00:00:00", label="Training data End date")
234
  apply_btn = gr.Button("Visualize Data", scale=0)
235
 
236
+ gr.Examples(
237
+ examples=[
238
+ ["example_files/test_tops_product_id_1.csv"],
239
+ ["example_files/test_tops_product_id_2.csv"],
240
+ ["example_files/test_tops_product_id_3.csv"],
241
+ ["example_files/test_tops_product_id_4.csv"]
242
+ ],
243
+ inputs=file_input,
244
+ outputs=[df_state, select_product_column, date_column, target_column],
245
+ fn=upload_file,
246
+ cache_examples=True
247
+ )
248
+
249
  with gr.Row():
250
  historical_data_plot = gr.Plot()
251