Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/function call models #34

Closed

Conversation

akashAD98
Copy link
Contributor

using the code changes user can directly pass different models

from wihsperplus.pipelines.chatbot import ChatWithVideo

# Model configuration
model_name = 'sentence-transformers/all-MiniLM-L6-v2'
llm_model_name = 'TheBloke/Mistral-7B-v0.1-GGUF'
llm_model_file = 'mistral-7b-v0.1.Q4_K_M.gguf'
llm_model_type = "mistral"
text_file_path = "transcript.text"

# Run the query
query = " give me summary of the video?"
result = ChatWithVideo.run_query(query, text_file_path, model_name, llm_model_name, llm_model_file, llm_model_type)
print("Result:", result)

akashAD98 and others added 4 commits January 1, 2024 16:03
user can directly select any ctransformer based model ,which will run on cpu
@kadirnar kadirnar self-requested a review January 1, 2024 12:01
@kadirnar kadirnar added bug Something isn't working enhancement New feature or request documentation Improvements or additions to documentation labels Jan 1, 2024
@akashAD98 akashAD98 closed this Jan 4, 2024
@akashAD98 akashAD98 deleted the update/function_call_models branch January 4, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants