Spaces:
Runtime error
Runtime error
Commit
•
bc1d2a3
1
Parent(s):
3cefce1
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,10 @@ if not is_spaces:
|
|
36 |
MAX_IMAGES = 150
|
37 |
|
38 |
# In case someone marks their duplicate as Zero #
|
39 |
-
@spaces.GPU
|
40 |
def zero_placeholder():
|
41 |
pass
|
|
|
|
|
42 |
|
43 |
def load_captioning(uploaded_files, concept_sentence):
|
44 |
uploaded_images = [file for file in uploaded_files if not file.endswith('.txt')]
|
|
|
36 |
MAX_IMAGES = 150
|
37 |
|
38 |
# In case someone marks their duplicate as Zero #
|
|
|
39 |
def zero_placeholder():
|
40 |
pass
|
41 |
+
if is_spaces:
|
42 |
+
run_captioning = spaces.GPU()(zero_placeholder)
|
43 |
|
44 |
def load_captioning(uploaded_files, concept_sentence):
|
45 |
uploaded_images = [file for file in uploaded_files if not file.endswith('.txt')]
|