Spaces:
Running
Running
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,8 @@ def get_pdf(pdf_docs):
|
|
53 |
def text_splitter(text):
|
54 |
text_splitter = RecursiveCharacterTextSplitter(
|
55 |
# Set a really small chunk size, just to show.
|
56 |
-
chunk_size=
|
57 |
-
chunk_overlap=
|
58 |
separators=["\n\n","\n"," ",".",","])
|
59 |
chunks=text_splitter.split_documents(text)
|
60 |
return chunks
|
@@ -77,7 +77,7 @@ def get_conversational_chain():
|
|
77 |
Answer:
|
78 |
"""
|
79 |
#model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3, google_api_key=GOOGLE_API_KEY)
|
80 |
-
repo_id ='google/gemma-1.1-2b-it'
|
81 |
#repo_id='meta-llama/Meta-Llama-3-70B'
|
82 |
#llm = HuggingFaceEndpoint(
|
83 |
#repo_id=repo_id, max_length=512, temperature=0.5, token=HUGGING_FACE_API_KEY)
|
|
|
53 |
def text_splitter(text):
|
54 |
text_splitter = RecursiveCharacterTextSplitter(
|
55 |
# Set a really small chunk size, just to show.
|
56 |
+
chunk_size=10000,
|
57 |
+
chunk_overlap=500,
|
58 |
separators=["\n\n","\n"," ",".",","])
|
59 |
chunks=text_splitter.split_documents(text)
|
60 |
return chunks
|
|
|
77 |
Answer:
|
78 |
"""
|
79 |
#model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3, google_api_key=GOOGLE_API_KEY)
|
80 |
+
#repo_id ='google/gemma-1.1-2b-it'
|
81 |
#repo_id='meta-llama/Meta-Llama-3-70B'
|
82 |
#llm = HuggingFaceEndpoint(
|
83 |
#repo_id=repo_id, max_length=512, temperature=0.5, token=HUGGING_FACE_API_KEY)
|