Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def plot():
|
|
44 |
cm = confusion_matrix(actual, pred)
|
45 |
disp = ConfusionMatrixDisplay(confusion_matrix=cm)
|
46 |
disp.plot()
|
47 |
-
return plt
|
48 |
|
49 |
|
50 |
demo = gr.Blocks()
|
@@ -87,7 +87,7 @@ with demo:
|
|
87 |
interface = gr.Interface(
|
88 |
plot,
|
89 |
[],
|
90 |
-
"
|
91 |
)
|
92 |
|
93 |
demo.launch()
|
|
|
44 |
cm = confusion_matrix(actual, pred)
|
45 |
disp = ConfusionMatrixDisplay(confusion_matrix=cm)
|
46 |
disp.plot()
|
47 |
+
return plt.gca()
|
48 |
|
49 |
|
50 |
demo = gr.Blocks()
|
|
|
87 |
interface = gr.Interface(
|
88 |
plot,
|
89 |
[],
|
90 |
+
"plot"
|
91 |
)
|
92 |
|
93 |
demo.launch()
|