CaioXapelaum commited on
Commit
ef73e61
·
verified ·
1 Parent(s): e43fd6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,7 @@ from llama_cpp_agent.chat_history.messages import Roles
8
  import gradio as gr
9
  from huggingface_hub import hf_hub_download
10
  import os
 
11
 
12
  huggingface_token = os.environ['HF_TOKEN']
13
 
@@ -51,6 +52,8 @@ hf_hub_download(
51
  llm = None
52
  llm_model = None
53
 
 
 
54
  @spaces.GPU(duration=120)
55
  def respond(
56
  message,
 
8
  import gradio as gr
9
  from huggingface_hub import hf_hub_download
10
  import os
11
+ import cv2
12
 
13
  huggingface_token = os.environ['HF_TOKEN']
14
 
 
52
  llm = None
53
  llm_model = None
54
 
55
+ cv2.setNumThreads(1)
56
+
57
  @spaces.GPU(duration=120)
58
  def respond(
59
  message,