Spaces:
Runtime error
Runtime error
gautam-shetty
commited on
Commit
•
c1f1320
1
Parent(s):
3deb082
Update app.py
Browse files
app.py
CHANGED
@@ -31,11 +31,13 @@ from predict import Predict
|
|
31 |
# result = Predict().predict(codeSnippet)
|
32 |
# st.write(result)
|
33 |
|
34 |
-
st.title("jRefactoring")
|
35 |
st.subheader("Enter Java Code")
|
36 |
codeSnippet = st_ace(language = 'java', auto_update = True)
|
37 |
if st.button('Check'):
|
38 |
if(codeSnippet!=""):
|
39 |
st.text("")
|
40 |
-
result = Predict().predict(codeSnippet)
|
|
|
|
|
41 |
st.write(result)
|
|
|
31 |
# result = Predict().predict(codeSnippet)
|
32 |
# st.write(result)
|
33 |
|
34 |
+
st.title("jRefactoring - Automatic Extract Method Refactoring Detection Using Deep Learning")
|
35 |
st.subheader("Enter Java Code")
|
36 |
codeSnippet = st_ace(language = 'java', auto_update = True)
|
37 |
if st.button('Check'):
|
38 |
if(codeSnippet!=""):
|
39 |
st.text("")
|
40 |
+
result, t, l = Predict().predict(codeSnippet)
|
41 |
+
st.write("Threshold - "+ t)
|
42 |
+
st.write("Calculated Loss - "+ l)
|
43 |
st.write(result)
|