Spaces:
Sleeping
Sleeping
RishabhBhardwaj
commited on
Commit
·
2ec2072
1
Parent(s):
6507278
try5
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def load_model():
|
|
22 |
return tokenizer, model
|
23 |
|
24 |
# Function to load image from URL
|
25 |
-
@st.cache_resource(
|
26 |
def load_image_from_url(url):
|
27 |
response = requests.get(url)
|
28 |
img = Image.open(BytesIO(response.content))
|
|
|
22 |
return tokenizer, model
|
23 |
|
24 |
# Function to load image from URL
|
25 |
+
@st.cache_resource()
|
26 |
def load_image_from_url(url):
|
27 |
response = requests.get(url)
|
28 |
img = Image.open(BytesIO(response.content))
|