Mr-Vicky-01 commited on
Commit
fbdae5e
1 Parent(s): 98ebf8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -137,6 +137,7 @@ with st.sidebar:
137
 
138
  if uploaded_url:
139
  url_text = get_url_text(uploaded_url)
 
140
  with open("data/url_text.txt", "w") as fil:
141
  fil.write(url_text)
142
  print(os.listdir("data"))
@@ -146,7 +147,7 @@ with st.sidebar:
146
  with open("data/transcript_text.txt", "w") as file:
147
  file.write(extracted_text)
148
 
149
- data_ingestion() # Process PDF every time new file is uploaded
150
  st.success("Done")
151
 
152
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
 
137
 
138
  if uploaded_url:
139
  url_text = get_url_text(uploaded_url)
140
+ print(url_text)
141
  with open("data/url_text.txt", "w") as fil:
142
  fil.write(url_text)
143
  print(os.listdir("data"))
 
147
  with open("data/transcript_text.txt", "w") as file:
148
  file.write(extracted_text)
149
 
150
+ data_ingestion()
151
  st.success("Done")
152
 
153
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")