mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-07-23 09:40:03 +00:00
fix build
This commit is contained in:
parent
6599268d78
commit
a12df7faf4
@ -86,7 +86,6 @@ def unload(model):
|
|||||||
def generate(model, prompt):
|
def generate(model, prompt):
|
||||||
# auto load
|
# auto load
|
||||||
error = load(model)
|
error = load(model)
|
||||||
print(error)
|
|
||||||
if error is not None:
|
if error is not None:
|
||||||
return error
|
return error
|
||||||
generated = llms[model](
|
generated = llms[model](
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from difflib import SequenceMatcher
|
from difflib import SequenceMatcher
|
||||||
import json
|
import json
|
||||||
|
|
||||||
with open("model_prompts.json", "r") as f:
|
with open("./model_prompts.json", "r") as f:
|
||||||
model_prompts = json.load(f)
|
model_prompts = json.load(f)
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user