AlanOC commited on
Commit
25982db
1 Parent(s): 75995b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -29,6 +29,8 @@ from langchain.prompts import ChatPromptTemplate
29
 
30
 
31
 
 
 
32
  # Function to get base64 encoding of an image
33
  def get_image_base64(path):
34
  with open(path, "rb") as image_file:
@@ -731,7 +733,19 @@ def info_page():
731
  """, unsafe_allow_html=True)
732
 
733
 
 
 
 
 
 
 
 
 
 
 
734
 
 
 
735
 
736
 
737
 
 
29
 
30
 
31
 
32
+
33
+
34
  # Function to get base64 encoding of an image
35
  def get_image_base64(path):
36
  with open(path, "rb") as image_file:
 
733
  """, unsafe_allow_html=True)
734
 
735
 
736
+ # Sample data for the bar plot
737
+ verbs = ['run', 'eat', 'jump', 'sleep', 'walk']
738
+ frequency = [20, 15, 10, 12, 18]
739
+
740
+ # Create a bar plot
741
+ plt.figure(figsize=(10, 5))
742
+ plt.bar(verbs, frequency)
743
+ plt.xlabel('Verbs')
744
+ plt.ylabel('Frequency')
745
+ plt.title('Frequency Distribution of Verbs')
746
 
747
+ # Display the plot in Streamlit
748
+ st.pyplot(plt)
749
 
750
 
751