thedamn commited on
Commit
812a01a
·
1 Parent(s): f9ef26a

good morning1222 commit

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -12,18 +12,18 @@ def main():
12
 
13
  # Generate response
14
  if st.button("Submit"):
15
- try:
16
- repos, status = web_scrape(user_url)
17
- task_progress = st.progress(0)
18
- task_progress.progress("Tools is taking action please wait")
19
- if status == 0:
20
- repo_path = data_cloning(repos)
21
- data_cleaning(repo_path)
22
- query = analyse()
23
- response_gpt = llm_chain([str(query)])
24
- # Display the response
25
- st.text_area("Bot Response:", value=response_gpt, height=100)
26
- except Exception as e:
27
  output = st.empty()
28
  output.error("Error occurred. Please contact the admin {e}.")
29
  time.sleep(5)
 
12
 
13
  # Generate response
14
  if st.button("Submit"):
15
+
16
+ repos, status = web_scrape(user_url)
17
+ task_progress = st.progress(0)
18
+ task_progress.progress("Tools is taking action please wait")
19
+ if status == 0:
20
+ repo_path = data_cloning(repos)
21
+ data_cleaning(repo_path)
22
+ query = analyse()
23
+ response_gpt = llm_chain([str(query)])
24
+ # Display the response
25
+ st.text_area("Bot Response:", value=response_gpt, height=100)
26
+ else:
27
  output = st.empty()
28
  output.error("Error occurred. Please contact the admin {e}.")
29
  time.sleep(5)