Spaces:
Build error
Build error
update exmaples
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ description = "This is a space to predict complexity of Java code with [UniXcode
|
|
8 |
a multilingual model for code, fine-tuned on [CodeComplex](https://huggingface.co/datasets/codeparrot/codecomplex), a dataset for complexity prediction of Java code."
|
9 |
|
10 |
#add examples
|
11 |
-
example = [
|
12 |
-
['
|
13 |
-
['import java.util.*;\n\npublic class
|
14 |
|
15 |
# model to be changed to the finetuned one
|
16 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/unixcoder-java-complexity-prediction")
|
|
|
8 |
a multilingual model for code, fine-tuned on [CodeComplex](https://huggingface.co/datasets/codeparrot/codecomplex), a dataset for complexity prediction of Java code."
|
9 |
|
10 |
#add examples
|
11 |
+
example = [['int n = 1000;\nSystem.out.println("Hey - your input is: " + n);'],
|
12 |
+
['class GFG {\n \n public static void main(String[] args)\n {\n int i, n = 8;\n for (i = 1; i <= n; i++) {\n System.out.printf("Hello World !!!\n");\n }\n }\n}'],
|
13 |
+
['import java.io.*;\nimport java.util.*;\n\npublic class C125 {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = r.readLine();\n\t\tint n = new Integer(s);\n\t\tSystem.out.println("0 0 "+n);\n\t}\n}\n']]
|
14 |
|
15 |
# model to be changed to the finetuned one
|
16 |
tokenizer = AutoTokenizer.from_pretrained("codeparrot/unixcoder-java-complexity-prediction")
|