Spaces:
Sleeping
Sleeping
AarushiGupta28
commited on
Commit
•
6f18e8e
1
Parent(s):
9fddb39
Update app_server.py
Browse files- app_server.py +2 -2
app_server.py
CHANGED
@@ -2,7 +2,7 @@ from subprocess import call
|
|
2 |
import streamlit as st
|
3 |
import random
|
4 |
import time
|
5 |
-
|
6 |
import json
|
7 |
import pathlib
|
8 |
import textwrap
|
@@ -42,7 +42,7 @@ requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
|
|
42 |
model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,temperature=0.3,convert_system_message_to_human=True)
|
43 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001",google_api_key=GOOGLE_API_KEY)
|
44 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=10)
|
45 |
-
location =
|
46 |
# persist_directory='/Users/vp317n/Documents/JUPYTER NOTEBOOK/db/'
|
47 |
# file_path = "100_names.txt"
|
48 |
# with open(file_path, 'r') as file:
|
|
|
2 |
import streamlit as st
|
3 |
import random
|
4 |
import time
|
5 |
+
import os
|
6 |
import json
|
7 |
import pathlib
|
8 |
import textwrap
|
|
|
42 |
model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,temperature=0.3,convert_system_message_to_human=True)
|
43 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001",google_api_key=GOOGLE_API_KEY)
|
44 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=10)
|
45 |
+
location = os.getcwd()
|
46 |
# persist_directory='/Users/vp317n/Documents/JUPYTER NOTEBOOK/db/'
|
47 |
# file_path = "100_names.txt"
|
48 |
# with open(file_path, 'r') as file:
|