kensvin commited on
Commit
fb6b415
1 Parent(s): 1977bde

try zerogpu spaces

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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