louiecerv commited on
Commit
eafe9b2
·
1 Parent(s): d8e6b1d

added a cover image

Browse files
Files changed (3) hide show
  1. app.py +6 -0
  2. authorship.png +0 -0
  3. requirements.txt +2 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import os
3
  import google.generativeai as genai
4
  from huggingface_hub import hf_hub_download
5
  import base64
 
6
 
7
  MODEL_ID = "gemini-2.0-flash-exp" # Keep the model ID as is
8
  try:
@@ -91,6 +92,11 @@ Gemini's generated response based on the provided document.
91
  with st.expander("How to use this App"):
92
  st.markdown(about)
93
 
 
 
 
 
 
94
  # --- Q and A Tab ---
95
  st.header("Questions and Answers")
96
 
 
3
  import google.generativeai as genai
4
  from huggingface_hub import hf_hub_download
5
  import base64
6
+ from PIL import Image
7
 
8
  MODEL_ID = "gemini-2.0-flash-exp" # Keep the model ID as is
9
  try:
 
92
  with st.expander("How to use this App"):
93
  st.markdown(about)
94
 
95
+
96
+ # --- Load the image ---
97
+ image = Image.open("authorship.png")
98
+ st.image(image, width=400)
99
+
100
  # --- Q and A Tab ---
101
  st.header("Questions and Answers")
102
 
authorship.png ADDED
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  streamlit
2
  huggingface_hub
3
- google-generativeai
 
 
1
  streamlit
2
  huggingface_hub
3
+ google-generativeai
4
+ Pillow