Commit
·
dd4f105
1
Parent(s):
4c6b685
fixed java uploader
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def classify_code(input_text, input_file):
|
|
25 |
"""Classifies Java code readability based on user input."""
|
26 |
# Load Java file if provided
|
27 |
if input_file is not None:
|
28 |
-
code = input_file.
|
29 |
else:
|
30 |
code = input_text # Use text input
|
31 |
|
|
|
25 |
"""Classifies Java code readability based on user input."""
|
26 |
# Load Java file if provided
|
27 |
if input_file is not None:
|
28 |
+
code = input_file.decode("utf-8") # Read Java file as text
|
29 |
else:
|
30 |
code = input_text # Use text input
|
31 |
|