优化代码! 真的最有一次优化isay的逻辑了!!!!
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
#! .\venv\
|
||||
# encoding: utf-8
|
||||
# @Time : 2023/6/15
|
||||
# @Author : Spike
|
||||
# @Descr :
|
||||
@ -1,5 +0,0 @@
|
||||
#! .\venv\
|
||||
# encoding: utf-8
|
||||
# @Time : 2023/6/14
|
||||
# @Author : Spike
|
||||
# @Descr :
|
||||
@ -1,30 +0,0 @@
|
||||
#! .\venv\
|
||||
# encoding: utf-8
|
||||
# @Time : 2023/5/23
|
||||
# @Author : Spike
|
||||
# @Descr :
|
||||
import json
|
||||
from toolbox import CatchException, update_ui
|
||||
from crazy_functions.crazy_utils import request_gpt_model_in_new_thread_with_ui_alive, input_clipping
|
||||
import func_box
|
||||
|
||||
|
||||
class ParseNoteBook:
|
||||
|
||||
def __init__(self, file):
|
||||
self.file = file
|
||||
|
||||
def load_dict(self):
|
||||
with open(self.file, 'r', encoding='utf-8', errors='replace') as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
@CatchException
|
||||
def 翻译理解jupyter(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
obj = ParseNoteBook('/Users/kilig/Desktop/jupy/NotarizedUpload.ipynb').load_dict()
|
||||
print(obj['cells'])
|
||||
|
||||
Reference in New Issue
Block a user