Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicklesworthstone committed May 19, 2024
1 parent b37f1d8 commit aff224a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def validate_bnf_grammar_func(grammar):
return False, f"Used rule {rule} is not defined."
return True, "Valid BNF Grammar"

def convert_document_to_sentences(file_path: str, mime_type: str) -> Dict[str, Any]:
def convert_document_to_sentences_func(file_path: str, mime_type: str) -> Dict[str, Any]:
# Extract text from document
if mime_type.startswith('text/'):
with open(file_path, 'r') as buffer:
Expand Down
2 changes: 1 addition & 1 deletion swiss_army_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from embeddings_data_models import EmbeddingResponse, SemanticSearchResponse, AdvancedSemanticSearchResponse, SimilarityResponse, AllStringsResponse, AllDocumentsResponse, TextCompletionResponse, AddGrammarResponse
from embeddings_data_models import ShowLogsIncrementalModel
from service_functions import get_or_compute_embedding, get_or_compute_transcript, add_model_url, get_or_compute_token_level_embedding_bundle_combined_feature_vector, calculate_token_level_embeddings
from service_functions import parse_submitted_document_file_into_sentence_strings_func, compute_embeddings_for_document, store_document_embeddings_in_db, generate_completion_from_llm, validate_bnf_grammar_func, convert_document_to_sentences
from service_functions import parse_submitted_document_file_into_sentence_strings_func, compute_embeddings_for_document, store_document_embeddings_in_db, generate_completion_from_llm, validate_bnf_grammar_func, convert_document_to_sentences_func
from grammar_builder import GrammarBuilder
from log_viewer_functions import show_logs_incremental_func, show_logs_func
from uvicorn_config import option
Expand Down

0 comments on commit aff224a

Please sign in to comment.