Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fkjhsfk
Browse files
app.py
CHANGED
@@ -451,7 +451,7 @@ CURR_CONTEXT = ''
|
|
451 |
# @spaces.GPU
|
452 |
def get_answer(image=[], message='', sessionID='abc123'):
|
453 |
global CURR_CONTEXT
|
454 |
-
if image:
|
455 |
try:
|
456 |
# Process the image and message here
|
457 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
451 |
# @spaces.GPU
|
452 |
def get_answer(image=[], message='', sessionID='abc123'):
|
453 |
global CURR_CONTEXT
|
454 |
+
if len(image) > 0:
|
455 |
try:
|
456 |
# Process the image and message here
|
457 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|