thedamn commited on
Commit
374a0fa
·
1 Parent(s): e8b9527

error handles final commitw

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. proper_main.py +3 -1
app.py CHANGED
@@ -5,12 +5,12 @@ from resource import llm_chain
5
  import time
6
 
7
  def main():
8
- st.title("GPT4All Chatbot")
9
 
10
  # User input
11
  user_url = st.text_input("Enter the Github URL")
12
 
13
- option = st.radio("What you want me to do",["Self Analysis","GPT Evaluation"])
14
 
15
  # Generate response
16
  if st.button("Submit"):
@@ -28,7 +28,7 @@ def main():
28
  if len(query) == 0:
29
  st.write("The given User's URL doesnt Contain Python Repository")
30
  st.experimental_rerun()
31
- if option == "Self Analysis":
32
  repo_name,score=self_analysis(report_analysis)
33
  st.write("The Complex Repo is",repo_name," Because the Complexity Score is",score)
34
  st.experimental_rerun()
 
5
  import time
6
 
7
  def main():
8
+ st.title("Github Automated Repo Analysis")
9
 
10
  # User input
11
  user_url = st.text_input("Enter the Github URL")
12
 
13
+ option = st.radio("What you want me to do",["Python Analysis","GPT Evaluation"])
14
 
15
  # Generate response
16
  if st.button("Submit"):
 
28
  if len(query) == 0:
29
  st.write("The given User's URL doesnt Contain Python Repository")
30
  st.experimental_rerun()
31
+ if option == "Python Analysis":
32
  repo_name,score=self_analysis(report_analysis)
33
  st.write("The Complex Repo is",repo_name," Because the Complexity Score is",score)
34
  st.experimental_rerun()
proper_main.py CHANGED
@@ -130,7 +130,9 @@ def analyse(st):
130
 
131
  def self_analysis(report_analysis):
132
  score= max(report_analysis.values())
133
- repo = max(report_analysis,key=report_analysis.get())
 
 
134
  return repo,score
135
 
136
 
 
130
 
131
  def self_analysis(report_analysis):
132
  score= max(report_analysis.values())
133
+ for keyss in report_analysis:
134
+ if report_analysis[keyss]==score:
135
+ repo = keyss
136
  return repo,score
137
 
138