Spaces:
Sleeping
Sleeping
no zero2
Browse files
helper.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
import sqlite3
|
3 |
import secrets
|
4 |
import hashlib
|
5 |
-
import spaces
|
6 |
import time
|
7 |
from argon2 import PasswordHasher
|
8 |
from cryptography.fernet import Fernet
|
@@ -44,7 +43,6 @@ def create_tables():
|
|
44 |
conn.commit()
|
45 |
conn.close()
|
46 |
|
47 |
-
@spaces.GPU
|
48 |
def get_embedding(text):
|
49 |
global tokenizer, model
|
50 |
|
|
|
2 |
import sqlite3
|
3 |
import secrets
|
4 |
import hashlib
|
|
|
5 |
import time
|
6 |
from argon2 import PasswordHasher
|
7 |
from cryptography.fernet import Fernet
|
|
|
43 |
conn.commit()
|
44 |
conn.close()
|
45 |
|
|
|
46 |
def get_embedding(text):
|
47 |
global tokenizer, model
|
48 |
|