文件
gpt_academic/crazy_functions/辅助面试.py
qingxu fu a3596ff60d audio
2023-07-02 01:05:20 +08:00

46 行
1.1 KiB
Python

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

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)