Ayanaminn / N46Whisper

Whisper based Japanese subtitle generator
MIT License
1.54k stars 127 forks source link

建议选择谷歌文件时能够提示已选择的文件信息,和删除已选择的文件的选项 #91

Closed xueli12 closed 7 months ago

xueli12 commented 7 months ago

在选择多个文件时,光看下面的提示,不知道选择了哪个文件。 有时候选错了,想删除其中一个。 image

bobo4545 commented 7 months ago

def select_file(b): selected_file = os.path.basename(path_widget.value) #<----新增這行 drive_dir.append(path_widget.value)

full_widget.disabled = True

    # clear_output()
    print('File selected,please continue to select more or execute next cell')
    print(f'已选择文件 "{selected_file}",可以继续选择或执行下个单元格') #<----修改這行

ChatGPT給的方法 這樣可以大概知道選擇的文件是什麼

xueli12 commented 7 months ago

感谢 可以了!