> python cli.py run-uvicorn
Running uvicorn server...
2023-07-21 10:07:45,143 - __init__ - catalog_manager.py - INFO - Overwriting existing data in the chroma.
Created a chunk of size 627, which is longer than the specified 500
Created a chunk of size 703, which is longer than the specified 500
Created a chunk of size 701, which is longer than the specified 500
Created a chunk of size 512, which is longer than the specified 500
2023-07-21 10:07:47,630 - load_characters - catalog_manager.py - INFO - Loaded data for character: Elon Musk
Created a chunk of size 515, which is longer than the specified 500
Created a chunk of size 634, which is longer than the specified 500
Created a chunk of size 525, which is longer than the specified 500
Created a chunk of size 590, which is longer than the specified 500
Created a chunk of size 585, which is longer than the specified 500
Created a chunk of size 509, which is longer than the specified 500
Created a chunk of size 690, which is longer than the specified 500
2023-07-21 10:07:48,524 - load_characters - catalog_manager.py - INFO - Loaded data for character: Loki
Created a chunk of size 507, which is longer than the specified 500
2023-07-21 10:07:49,540 - load_characters - catalog_manager.py - INFO - Loaded data for character: Raiden Shogun And Ei
Created a chunk of size 535, which is longer than the specified 500
Created a chunk of size 744, which is longer than the specified 500
Created a chunk of size 808, which is longer than the specified 500
Created a chunk of size 747, which is longer than the specified 500
Created a chunk of size 641, which is longer than the specified 500
Created a chunk of size 595, which is longer than the specified 500
Created a chunk of size 748, which is longer than the specified 500
Created a chunk of size 873, which is longer than the specified 500
Created a chunk of size 602, which is longer than the specified 500
2023-07-21 10:07:50,595 - load_characters - catalog_manager.py - INFO - Loaded data for character: Bruce Wayne
Created a chunk of size 876, which is longer than the specified 500
Created a chunk of size 1072, which is longer than the specified 500
Created a chunk of size 666, which is longer than the specified 500
Created a chunk of size 946, which is longer than the specified 500
Created a chunk of size 829, which is longer than the specified 500
Created a chunk of size 786, which is longer than the specified 500
Created a chunk of size 847, which is longer than the specified 500
Created a chunk of size 674, which is longer than the specified 500
Created a chunk of size 791, which is longer than the specified 500
Created a chunk of size 571, which is longer than the specified 500
Created a chunk of size 530, which is longer than the specified 500
Created a chunk of size 505, which is longer than the specified 500
2023-07-21 10:07:51,787 - load_characters - catalog_manager.py - INFO - Loaded data for character: Steve Jobs
2023-07-21 10:07:51,788 - load_characters - catalog_manager.py - INFO - Loaded 5 characters: names ['Elon Musk', 'Loki', 'Raiden Shogun And Ei', 'Bruce Wayne', 'Steve Jobs']
2023-07-21 10:07:51,788 - __init__ - catalog_manager.py - INFO - Persisting data in the chroma.
2023-07-21 10:07:51,845 - __init__ - catalog_manager.py - INFO - Total document load: 243
2023-07-21 10:07:51,975 - __init__ - elevenlabs.py - INFO - Initializing [ElevenLabs Text To Speech] voices...
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/whisper/timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
def backtrace(trace: np.ndarray):
2023-07-21 10:07:53,121 - __init__ - whisper.py - INFO - Loading [Local Whisper] model: [tiny]...
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 980, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1041, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/uvicorn", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/main.py", line 416, in main
run(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/main.py", line 587, in run
server.run()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/kevin/1-GR个人/16-XMDM项目代码/161-WDXM我的项目/1618-RealChar/realtime_ai_character/main.py", line 29, in <module>
get_speech_to_text()
File "/Users/kevin/1-GR个人/16-XMDM项目代码/161-WDXM我的项目/1618-RealChar/realtime_ai_character/audio/speech_to_text/__init__.py", line 14, in get_speech_to_text
Whisper.initialize(use='local')
File "/Users/kevin/1-GR个人/16-XMDM项目代码/161-WDXM我的项目/1618-RealChar/realtime_ai_character/utils.py", line 56, in initialize
cls._instances[cls] = cls(*args, **kwargs)
File "/Users/kevin/1-GR个人/16-XMDM项目代码/161-WDXM我的项目/1618-RealChar/realtime_ai_character/audio/speech_to_text/whisper.py", line 28, in __init__
self.model = whisper.load_model(config.model)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/whisper/__init__.py", line 131, in load_model
checkpoint_file = _download(_MODELS[name], download_root, in_memory)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/whisper/__init__.py", line 67, in _download
with urllib.request.urlopen(url) as source, open(download_target, "wb") as output:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>