robertselvam commited on
Commit
4022bda
·
verified ·
1 Parent(s): 9f858bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -395,7 +395,7 @@ class DemandForecasting:
395
  # Predict sales for the specified date using the trained model
396
  predicted_value = self.predict_sales_for_date(input_data, trained_model)
397
 
398
- return plot, predicted_value, validation
399
 
400
  except Exception as e:
401
  # Log an error message if an exception occurs in the main function
@@ -423,12 +423,16 @@ class DemandForecasting:
423
 
424
 
425
  with gr.Row():
426
- validation = gr.Textbox(label="Validation")
427
- predicted_result = gr.Textbox(label="Predicted Result")
428
- plot = gr.Plot()
429
-
 
 
 
 
430
  train_csv.upload(self.get_column, train_csv, column_list)
431
- audio_path.stop_recording(self.main, [train_csv, audio_path, target_column, selected_column], [plot, predicted_result, validation])
432
 
433
  demo.launch(debug=True)
434
 
 
395
  # Predict sales for the specified date using the trained model
396
  predicted_value = self.predict_sales_for_date(input_data, trained_model)
397
 
398
+ return validation, line_graph, scatter_plot, predicted_value
399
 
400
  except Exception as e:
401
  # Log an error message if an exception occurs in the main function
 
423
 
424
 
425
  with gr.Row():
426
+ validation = gr.Textbox(label="Validation")
427
+ with gr.Row():
428
+ predicted_result = gr.Textbox(label="Predicted Result")
429
+ with gr.Row():
430
+ line_plot = gr.Plot()
431
+ with gr.Row():
432
+ scatter_plot = gr.Plot()
433
+
434
  train_csv.upload(self.get_column, train_csv, column_list)
435
+ audio_path.stop_recording(self.main, [train_csv, audio_path, target_column, selected_column], [validation, line_plot, scatter_plot, predicted_result])
436
 
437
  demo.launch(debug=True)
438