Spaces:
Runtime error
Runtime error
jaifar530
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,12 +147,18 @@ with st.expander("How does the system work?"):
|
|
| 147 |
The system is trained using a CNN model on a dataset of 140,546 paragraphs, varying in length from 10 to 500 words.
|
| 148 |
It achieves an accuracy of 0.9964 with a validation loss of 0.094.
|
| 149 |
""")
|
| 150 |
-
|
| 151 |
# Fetch the image from the URL
|
| 152 |
accuracy_image_request = requests.get("https://jaifar.net/best_accuracy.png", headers=headers)
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
# Open the image
|
| 155 |
-
accuracy_image = Image.open(
|
| 156 |
|
| 157 |
# Display the image using streamlit
|
| 158 |
st.image(accuracy_image, caption='Best Accuracy', use_column_width=True)
|
|
|
|
| 147 |
The system is trained using a CNN model on a dataset of 140,546 paragraphs, varying in length from 10 to 500 words.
|
| 148 |
It achieves an accuracy of 0.9964 with a validation loss of 0.094.
|
| 149 |
""")
|
| 150 |
+
|
| 151 |
# Fetch the image from the URL
|
| 152 |
accuracy_image_request = requests.get("https://jaifar.net/best_accuracy.png", headers=headers)
|
| 153 |
|
| 154 |
+
# Save the downloaded content
|
| 155 |
+
image_path = "best_accuracy.png"
|
| 156 |
+
with open(image_path, "wb") as f:
|
| 157 |
+
f.write(accuracy_image_request.content)
|
| 158 |
+
|
| 159 |
+
|
| 160 |
# Open the image
|
| 161 |
+
accuracy_image = Image.open(image_path)
|
| 162 |
|
| 163 |
# Display the image using streamlit
|
| 164 |
st.image(accuracy_image, caption='Best Accuracy', use_column_width=True)
|