Spaces:
Sleeping
Sleeping
try zerogpu spaces
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
from dotenv import load_dotenv
|
2 |
load_dotenv()
|
3 |
|
@@ -94,6 +96,7 @@ qa = None
|
|
94 |
cache = {}
|
95 |
|
96 |
|
|
|
97 |
async def generate(URL, query):
|
98 |
global cache_URL, db, qa, cache
|
99 |
|
|
|
1 |
+
import spaces
|
2 |
+
|
3 |
from dotenv import load_dotenv
|
4 |
load_dotenv()
|
5 |
|
|
|
96 |
cache = {}
|
97 |
|
98 |
|
99 |
+
@spaces.GPU
|
100 |
async def generate(URL, query):
|
101 |
global cache_URL, db, qa, cache
|
102 |
|