Spaces:
Runtime error
Runtime error
Commit
·
d0a504b
1
Parent(s):
951a2cd
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,15 +20,12 @@
|
|
| 20 |
import streamlit as st
|
| 21 |
from predict import Predict
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
if
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 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)
|
|
|
|
|
|
|
|
|