John6666 commited on
Commit
382969a
·
verified ·
1 Parent(s): 52d8257

Upload llmdolphin.py

Browse files
Files changed (1) hide show
  1. llmdolphin.py +0 -2
llmdolphin.py CHANGED
@@ -6,7 +6,6 @@ from llama_cpp_agent.providers import LlamaCppPythonProvider
6
  from llama_cpp_agent.chat_history import BasicChatHistory
7
  from llama_cpp_agent.chat_history.messages import Roles
8
  from ja_to_danbooru.ja_to_danbooru import jatags_to_danbooru_tags
9
- import timeout_decorator
10
 
11
 
12
  llm_models_dir = "./llm_models"
@@ -355,7 +354,6 @@ def select_dolphin_language(lang: str):
355
  return gr.update(value=get_dolphin_sysprompt())
356
 
357
 
358
- @timeout_decorator.timeout(15)
359
  def get_raw_prompt(msg: str):
360
  import re
361
  m = re.findall(r'/GENBEGIN/((?:.|\s)+?)/GENEND/', msg)
 
6
  from llama_cpp_agent.chat_history import BasicChatHistory
7
  from llama_cpp_agent.chat_history.messages import Roles
8
  from ja_to_danbooru.ja_to_danbooru import jatags_to_danbooru_tags
 
9
 
10
 
11
  llm_models_dir = "./llm_models"
 
354
  return gr.update(value=get_dolphin_sysprompt())
355
 
356
 
 
357
  def get_raw_prompt(msg: str):
358
  import re
359
  m = re.findall(r'/GENBEGIN/((?:.|\s)+?)/GENEND/', msg)