Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,9 +79,9 @@ def visualize_neural(a):
|
|
79 |
plt.title('Neural Network Graph')
|
80 |
plt.savefig(buffer, format='png')
|
81 |
plt.close()
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
if output<0.5:
|
86 |
return image_array,"Non palindrom"
|
87 |
else:
|
|
|
79 |
plt.title('Neural Network Graph')
|
80 |
plt.savefig(buffer, format='png')
|
81 |
plt.close()
|
82 |
+
buffer.seek(0)
|
83 |
+
image = Image.open(buffer)
|
84 |
+
image_array = np.array(image)
|
85 |
if output<0.5:
|
86 |
return image_array,"Non palindrom"
|
87 |
else:
|