Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,11 @@ import sqlite3
|
|
9 |
# Initialize Streamlit app
|
10 |
st.set_page_config(page_title="Image Caption Generator", layout="wide")
|
11 |
|
12 |
-
|
13 |
|
14 |
@st.cache_resource
|
15 |
|
16 |
##Bloom
|
17 |
-
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
18 |
# HF_TOKEN = os.environ["HF_TOKEN"]
|
19 |
# headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
20 |
|
|
|
9 |
# Initialize Streamlit app
|
10 |
st.set_page_config(page_title="Image Caption Generator", layout="wide")
|
11 |
|
12 |
+
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
13 |
|
14 |
@st.cache_resource
|
15 |
|
16 |
##Bloom
|
|
|
17 |
# HF_TOKEN = os.environ["HF_TOKEN"]
|
18 |
# headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
19 |
|