Spaces:
Running
Running
CaioXapelaum
commited on
Update app.py
Browse files
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,
|