elliesleightholm commited on
Commit
95e9582
1 Parent(s): 86b24b1

updating for zero gpu

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ load_dotenv()
16
  api_key = os.getenv("MARQO_API_KEY")
17
  mq = marqo.Client("https://api.marqo.ai", api_key=api_key)
18
 
 
19
  def search_marqo(query, themes, negatives):
20
  # Build query weights
21
  query_weights = {query: 1.0}
 
16
  api_key = os.getenv("MARQO_API_KEY")
17
  mq = marqo.Client("https://api.marqo.ai", api_key=api_key)
18
 
19
+ @spaces.GPU
20
  def search_marqo(query, themes, negatives):
21
  # Build query weights
22
  query_weights = {query: 1.0}