shukdevdatta123 commited on
Commit
884fa7a
·
verified ·
1 Parent(s): 6ff0a34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -873,7 +873,9 @@ with gr.Blocks(css=custom_css) as app:
873
  submit_button.click(
874
  fn=process_and_update_file_path,
875
  inputs=[api_key_input, file_upload, num_recipes, dietary_restrictions, cuisine_preference],
876
- outputs=[output, html_file_path, download_button]
 
 
877
  )
878
 
879
  # Handle download button click
 
873
  submit_button.click(
874
  fn=process_and_update_file_path,
875
  inputs=[api_key_input, file_upload, num_recipes, dietary_restrictions, cuisine_preference],
876
+ outputs=[output, html_file_path, download_button],
877
+ _js="startLoadingProcess", # Call our JavaScript function to start the loading spinner
878
+ show_progress=True # Show Gradio's built-in progress indicator as well
879
  )
880
 
881
  # Handle download button click