gautam-shetty commited on
Commit
49b9613
·
1 Parent(s): 68fd1d1

streamlit_ace test

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -18,12 +18,21 @@
18
  # app.run(debug=True, use_reloader=False, port='8080')
19
 
20
  import streamlit as st
 
21
  from predict import Predict
22
 
23
- st.title("jRefactoring")
24
- codeSnippet = st.text_area(code)
25
- st.text("")
 
 
 
 
 
 
26
 
 
 
27
  if st.button('Check'):
28
  if(codeSnippet!=""):
29
  st.text("")
 
18
  # app.run(debug=True, use_reloader=False, port='8080')
19
 
20
  import streamlit as st
21
+ from streamlit_ace import st_ace
22
  from predict import Predict
23
 
24
+ # st.title("jRefactoring")
25
+ # codeSnippet = st.text_input('Enter Java Code here')
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
+ st.title("jRefactoring")
35
+ codeSnippet = st_ace(language = 'java')
36
  if st.button('Check'):
37
  if(codeSnippet!=""):
38
  st.text("")