镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 22:46:48 +00:00
audio
这个提交包含在:
45
crazy_functions/辅助面试.py
普通文件
45
crazy_functions/辅助面试.py
普通文件
@@ -0,0 +1,45 @@
|
||||
from toolbox import update_ui
|
||||
from toolbox import CatchException, report_execption, write_results_to_file
|
||||
from crazy_functions.crazy_utils import request_gpt_model_in_new_thread_with_ui_alive
|
||||
import threading
|
||||
|
||||
class InterviewAssistent():
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
|
||||
# def audio_capture_thread(self):
|
||||
|
||||
# 第7步:所有线程同时开始执行任务函数
|
||||
# handles = [ for index, fp in enumerate(file_manifest)]
|
||||
|
||||
|
||||
|
||||
|
||||
def init(self):
|
||||
self.captured_words = ""
|
||||
# threading.Thread(target=self.audio_capture_thread, args=(self, 1))
|
||||
|
||||
|
||||
def begin(self, llm_kwargs, plugin_kwargs, chatbot, history):
|
||||
while True:
|
||||
break
|
||||
# yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@CatchException
|
||||
def 辅助面试(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
||||
pass
|
||||
# pip install -U openai-whisper
|
||||
# while True:
|
||||
# time.sleep(4)
|
||||
# print(plugin_kwargs)
|
||||
# ia = InterviewAssistent()
|
||||
# yield from ia.begin(llm_kwargs, plugin_kwargs, chatbot, history)
|
||||
|
||||
在新工单中引用
屏蔽一个用户