Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,13 @@ demo = gr.Blocks()
|
|
8 |
|
9 |
#'spaces/Gradio-Blocks/Codex_OpenAI' did not work due to paramerts error
|
10 |
#'huggingface/facebook/incoder-6B' inference error
|
|
|
11 |
|
12 |
-
name_list = ['huggingface/lvwerra/codeparrot','huggingface/facebook/incoder-1B'
|
13 |
|
14 |
open_ai_name = ['openai/code-davinci-002', 'openai/code-cushman-001']
|
15 |
|
16 |
-
examples = [ ["import numpy as np
|
17 |
['def get_file_size(filepath):'],
|
18 |
]
|
19 |
|
|
|
8 |
|
9 |
#'spaces/Gradio-Blocks/Codex_OpenAI' did not work due to paramerts error
|
10 |
#'huggingface/facebook/incoder-6B' inference error
|
11 |
+
#huggingface/Salesforce/codegen-2B-mono 500 Error
|
12 |
|
13 |
+
name_list = ['huggingface/lvwerra/codeparrot','huggingface/facebook/incoder-1B']
|
14 |
|
15 |
open_ai_name = ['openai/code-davinci-002', 'openai/code-cushman-001']
|
16 |
|
17 |
+
examples = [ ["import numpy as np\nfrom sklearn.ensemble import RandomForestClassifier\n# create training data\nX = np.random.randn(100, 100)\ny = np.random.randint(0, 1, 100)\n # setup train test split"],
|
18 |
['def get_file_size(filepath):'],
|
19 |
]
|
20 |
|