Spaces:
Runtime error
Runtime error
app
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def detect_issue(file):
|
|
11 |
preds = model.predict(df)
|
12 |
result = []
|
13 |
for i,pred in enumerate(preds):
|
14 |
-
result.append(['Sample ' + str(i+1), np.argmax(pred),pred[np.argmax(pred)]]
|
15 |
return pd.DataFrame(result,header=['Sample','class','confidence'])
|
16 |
|
17 |
|
|
|
11 |
preds = model.predict(df)
|
12 |
result = []
|
13 |
for i,pred in enumerate(preds):
|
14 |
+
result.append(['Sample ' + str(i+1), np.argmax(pred),pred[np.argmax(pred)]])
|
15 |
return pd.DataFrame(result,header=['Sample','class','confidence'])
|
16 |
|
17 |
|