Solshine commited on
Commit
3aa419b
·
verified ·
1 Parent(s): bcb9467

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ from chromadb.config import Settings
5
 
6
  from chromadb import PersistentClient
7
 
8
- # Set the correct path to chroma.sqlite3 (according to the repo structure)
9
- client_db = PersistentClient(path="./chromadb_directory/chromadb_file/chroma.sqlite3")
10
 
11
  # Load your collection
12
  collection = client_db.get_collection("my_collection")
@@ -61,7 +61,7 @@ demo = gr.ChatInterface(
61
  additional_inputs=[
62
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
63
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
64
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
65
  gr.Slider(
66
  minimum=0.1,
67
  maximum=1.0,
 
5
 
6
  from chromadb import PersistentClient
7
 
8
+ # Set the correct path to the ChromaDB directory
9
+ client_db = PersistentClient(path="./chromadb_directory/chromadb_file")
10
 
11
  # Load your collection
12
  collection = client_db.get_collection("my_collection")
 
61
  additional_inputs=[
62
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
63
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
64
+ gr.Slider(minimum=0.1, maximum 4.0, value=0.7, step=0.1, label="Temperature"),
65
  gr.Slider(
66
  minimum=0.1,
67
  maximum=1.0,