gautam-shetty commited on
Commit
d0a504b
·
1 Parent(s): 951a2cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -20,15 +20,12 @@
20
  import streamlit as st
21
  from predict import Predict
22
 
23
- def page():
24
- st.title("jRefactoring")
25
- codeSnippet = st.text_input('Enter Java code here', "public class hello { ... }")
26
- st.text("")
27
-
28
- if st.button('Check'):
29
- if(codeSnippet!=""):
30
- st.text("")
31
- result = Predict().predict(codeSnippet)
32
- st.write(result)
33
-
34
- page()
 
20
  import streamlit as st
21
  from predict import Predict
22
 
23
+ st.title("jRefactoring")
24
+ codeSnippet = st.text_input('Enter Java code here', "public class hello { ... }")
25
+ st.text("")
26
+
27
+ if st.button('Check'):
28
+ if(codeSnippet!=""):
29
+ st.text("")
30
+ result = Predict().predict(codeSnippet)
31
+ st.write(result)