trying to get tooling working
This commit is contained in:
1 parent
4d71275f12
commit
16d4998d70
4 files changed
+46
-17
No files matched your search
@@ -1,11 +1,24 @@
|
||||
import tts
|
||||
from textgen import tool_funcs
|
||||
from textgen import llm
|
||||
|
||||
MODEL_PATH = "./textgen/models/mistral-7b-instruct-v0.3.Q4_K_M.gguf"
|
||||
|
||||
|
||||
t = tts.TTS()
|
||||
|
||||
save_path = 'audio/weather.wav'
|
||||
|
||||
t.create_audio(tool_funcs.get_high_low(), save_path)
|
||||
l = llm.TextGen(
|
||||
MODEL_PATH,
|
||||
2048,
|
||||
0
|
||||
)
|
||||
|
||||
r = l.chat_completion("What is the weather like today?")
|
||||
|
||||
print(r)
|
||||
|
||||
t.create_audio(r, save_path)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user