jaifar530 commited on
Commit
626c58a
·
unverified ·
1 Parent(s): 90f4805

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -8,6 +8,7 @@ from keras.preprocessing.sequence import pad_sequences
8
  from sklearn.preprocessing import LabelEncoder
9
  import pickle
10
  import numpy as np
 
11
 
12
 
13
  # Custom headers for the HTTP request
@@ -140,12 +141,21 @@ with st.expander("Aim and Objectives"):
140
  The project aims to help staff at the University of Portsmouth distinguish between student-written artifacts and those generated by LLMs. It focuses on text feature extraction, model testing, and implementing a user-friendly dashboard among other objectives.
141
  """)
142
 
143
- # # System Details
144
- # with st.expander("How does the system work?"):
145
- # st.write("""
146
- # The system is trained using a CNN model on a dataset of 140,546 paragraphs, varying in length from 10 to 500 words.
147
- # It achieves an accuracy of 0.9964 with a validation loss of 0.094.
148
- # """)
 
 
 
 
 
 
 
 
 
149
 
150
  # Data Storage Information
151
  with st.expander("Does the system store my data?"):
 
8
  from sklearn.preprocessing import LabelEncoder
9
  import pickle
10
  import numpy as np
11
+ from PIL import Image
12
 
13
 
14
  # Custom headers for the HTTP request
 
141
  The project aims to help staff at the University of Portsmouth distinguish between student-written artifacts and those generated by LLMs. It focuses on text feature extraction, model testing, and implementing a user-friendly dashboard among other objectives.
142
  """)
143
 
144
+ # System Details
145
+ with st.expander("How does the system work?"):
146
+ st.write("""
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")
153
+
154
+ # Open the image
155
+ accuracy_image = Image.open(accuracy_image_request.content)
156
+
157
+ # Display the image using streamlit
158
+ st.image(accuracy_image, caption='Best Accuracy', use_column_width=True)
159
 
160
  # Data Storage Information
161
  with st.expander("Does the system store my data?"):