Spaces:
Runtime error
Runtime error
Commit
·
661e23b
1
Parent(s):
bf1669d
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ def predict(file):
|
|
9 |
print(f.read())
|
10 |
print("=====================================")
|
11 |
ans = make_prediction(file.name)
|
|
|
|
|
12 |
return {ans[0] :ans[1]}
|
13 |
|
14 |
iface = gr.Interface(predict, "file", "label", title="ECG Classification", description="Upload an ECG file to classify it as Normal or Abnormal", examples=[["data/faizan_r8.txt"]])
|
|
|
9 |
print(f.read())
|
10 |
print("=====================================")
|
11 |
ans = make_prediction(file.name)
|
12 |
+
print(ans)
|
13 |
+
print("=====================================")
|
14 |
return {ans[0] :ans[1]}
|
15 |
|
16 |
iface = gr.Interface(predict, "file", "label", title="ECG Classification", description="Upload an ECG file to classify it as Normal or Abnormal", examples=[["data/faizan_r8.txt"]])
|