Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ model = AutoModelForSequenceClassification.from_pretrained("codeparrot/unixcoder
|
|
| 18 |
|
| 19 |
def get_label(output):
|
| 20 |
label = int(output[-1])
|
| 21 |
-
labels = ClassLabel(num_classes=7, names='constant', 'cubic', 'linear', 'logn', 'nlogn', 'np', 'quadratic'])
|
| 22 |
return labels.int2str(label)
|
| 23 |
|
| 24 |
def complexity_estimation(gen_prompt):
|
|
|
|
| 18 |
|
| 19 |
def get_label(output):
|
| 20 |
label = int(output[-1])
|
| 21 |
+
labels = ClassLabel(num_classes=7, names=['constant', 'cubic', 'linear', 'logn', 'nlogn', 'np', 'quadratic'])
|
| 22 |
return labels.int2str(label)
|
| 23 |
|
| 24 |
def complexity_estimation(gen_prompt):
|