Spaces:
Sleeping
Sleeping
merge
Browse files- app.py +5 -0
- requirements.txt +2 -1
- visual_understanding.png +0 -0
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:
|
|
@@ -90,6 +91,10 @@ Select a question from the dropdown menu or enter your own question to get an AI
|
|
| 90 |
with st.expander("How to use this App"):
|
| 91 |
st.markdown(about)
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
# --- Q and A Tab ---
|
| 94 |
st.header("Questions and Answers")
|
| 95 |
|
|
|
|
| 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:
|
|
|
|
| 91 |
with st.expander("How to use this App"):
|
| 92 |
st.markdown(about)
|
| 93 |
|
| 94 |
+
# --- Load the image ---
|
| 95 |
+
image = Image.open("visual_undeerstanding.png")
|
| 96 |
+
st.image(image, width=400)
|
| 97 |
+
|
| 98 |
# --- Q and A Tab ---
|
| 99 |
st.header("Questions and Answers")
|
| 100 |
|
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
|
visual_understanding.png
ADDED
|