Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,11 @@ Category List : ["Dairy & Eggs", "Beverages & Snacks", "Cleaning & Hygiene", "Gr
|
|
76 |
'''
|
77 |
|
78 |
@spaces.GPU()
|
|
|
|
|
|
|
|
|
|
|
79 |
def chunk_it(inventory_list, user_input_text):
|
80 |
logger.info("Loading model and tokenizer...")
|
81 |
try:
|
|
|
76 |
'''
|
77 |
|
78 |
@spaces.GPU()
|
79 |
+
num_elements = (5 * 1024 * 1024) // 4
|
80 |
+
# Create a tensor with the calculated number of elements
|
81 |
+
tensor = torch.randn(num_elements, dtype=torch.float32)
|
82 |
+
# Move the tensor to the GPU
|
83 |
+
tensor_gpu = tensor.to('cuda')
|
84 |
def chunk_it(inventory_list, user_input_text):
|
85 |
logger.info("Loading model and tokenizer...")
|
86 |
try:
|