Spaces:
Sleeping
Sleeping
error handles final commitw
Browse files- app.py +3 -3
- 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("
|
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",["
|
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 == "
|
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 |
-
|
|
|
|
|
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 |
|