Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
|
4 |
# Hugging Face API setup
|
5 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct"
|
6 |
-
headers = {"Authorization": f"Bearer {st.secrets['
|
7 |
|
8 |
# Function to query the model
|
9 |
def query_image(image_data, prompt_text):
|
|
|
3 |
|
4 |
# Hugging Face API setup
|
5 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct"
|
6 |
+
headers = {"Authorization": f"Bearer {st.secrets['huggingface_api_key']}"}
|
7 |
|
8 |
# Function to query the model
|
9 |
def query_image(image_data, prompt_text):
|