Skip to content

Commit

Permalink
修复linux下whisper库的链接
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Nov 6, 2024
1 parent cbe72e8 commit 38f7e98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release) # 设置

###################################### 编译选项 ######################################
option(BODY_PACK "pack eva" OFF) # 是否打包
option(GGML_CUDA "ggml: use CUDA" ON) # 速度900%
option(GGML_CUDA "ggml: use CUDA" OFF) # 速度900%
option(GGML_VULKAN "ggml: use Vulkan" OFF) # 速度250%

##################################### 处理编译选项 ####################################
Expand Down Expand Up @@ -252,8 +252,8 @@ elseif(UNIX)
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libsd-ggml.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libsd-ggml.so"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/sd" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/AppDir/usr/bin/sd"

COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libwhisper.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper.so"
# COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libwhisper-ggml.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper-ggml.so"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/whisper.cpp/src/libwhisper.so.1" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper.so.1" # 这个是快捷方式
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/whisper.cpp/src/libwhisper.so.1.6.2" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper.so.1.6.2" # 注意版本号
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/whisper-cli" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/bin/whisper-cli"

COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR}/ui/utils ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/ui/utils/eva.desktop ${CMAKE_BINARY_DIR}/Release/AppDir/usr/share/applications/eva.desktop
Expand Down
2 changes: 1 addition & 1 deletion ui/resource/language.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"Q9": ["写一个新闻稿,为运动会上健儿加油","Write a press release to cheer for the athletes at the sports meeting "],
"Q10": ["写一个心得体会,关于一本无人机书籍的学习","Write a reflection on the study of a drone book "],
"Q11": ["写一个实习报告,关于在气象台实习的","Write an internship report about interning at a meteorological station "],
"Q12": ["写一个开题报告和任务书,关于大模型在气象上的应用研究","Write a proposal and task book on the application research of large-scale models in meteorology "],
"Q12": ["请使用BOPPPS模型设计一堂课,题目为:神经网络原理","Please use the BOPPPS model to design a class titled: Principles of Neural Networks "],
"Q13": ["写一个检讨书,关于工作失职,3000字","Write a 3000 word review on dereliction of duty at work "],
"Q14": ["<机体同步率测试>","<Eva sync rate test>"],
"Q15": ["<上传图像>","<Upload Image> "],
Expand Down

0 comments on commit 38f7e98

Please sign in to comment.