kausthubkannan17 commited on
Commit
51d3034
·
1 Parent(s): be4c48b

fix: spinner for chunking file

Browse files
Files changed (1) hide show
  1. pages/upload_url.py +6 -6
pages/upload_url.py CHANGED
@@ -29,17 +29,17 @@ if video_url:
29
  try:
30
  documents, metadata = processing.load_yt_transcript(video_url)
31
  st.session_state["metadata"] = {"id": metadata["id"]}
32
- st.success("Successfully chunked the file")
33
  except Exception as e:
34
  print(e)
35
  st.error("Error in chunking")
36
 
37
  # Uploading to DB
38
- with st.spinner('Please wait, documents uploading ...'):
39
- try:
40
- processing.upload_to_db(documents)
41
- except Exception as e:
42
- st.error("Error in uploading")
 
43
 
44
  # Generating Notes
45
  if allow_make_notes:
 
29
  try:
30
  documents, metadata = processing.load_yt_transcript(video_url)
31
  st.session_state["metadata"] = {"id": metadata["id"]}
 
32
  except Exception as e:
33
  print(e)
34
  st.error("Error in chunking")
35
 
36
  # Uploading to DB
37
+ with st.spinner('Please wait, documents uploading ...'):
38
+ try:
39
+ processing.upload_to_db(documents)
40
+ st.success("Successfully uploaded the file")
41
+ except Exception as e:
42
+ st.error("Error in uploading")
43
 
44
  # Generating Notes
45
  if allow_make_notes: