Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,6 @@ def predict_class(text):
|
|
22 |
st.error(f"Error during prediction: {e}")
|
23 |
return None
|
24 |
|
25 |
-
uploaded_files_dir = "uploaded_files"
|
26 |
-
os.makedirs(uploaded_files_dir, exist_ok=True)
|
27 |
|
28 |
class_colors = {
|
29 |
0: "#d62728", # Level 1
|
@@ -55,7 +53,6 @@ with st.sidebar:
|
|
55 |
|
56 |
st.title("Check Your Paper Now!")
|
57 |
|
58 |
-
option = st.radio("Select input type:", ("Text", "PDF"))
|
59 |
|
60 |
if option == "Text":
|
61 |
title_input = st.text_area("Enter Title:")
|
|
|
22 |
st.error(f"Error during prediction: {e}")
|
23 |
return None
|
24 |
|
|
|
|
|
25 |
|
26 |
class_colors = {
|
27 |
0: "#d62728", # Level 1
|
|
|
53 |
|
54 |
st.title("Check Your Paper Now!")
|
55 |
|
|
|
56 |
|
57 |
if option == "Text":
|
58 |
title_input = st.text_area("Enter Title:")
|