Spaces:
Paused
Paused
Carlos Rosas
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -34,15 +34,15 @@ tokenizer.pad_token_id = 1
|
|
34 |
|
35 |
# Define variables
|
36 |
temperature = 0.0
|
37 |
-
max_new_tokens =
|
38 |
top_p = 0.95
|
39 |
repetition_penalty = 1.0
|
40 |
-
min_new_tokens =
|
41 |
early_stopping = False
|
42 |
|
43 |
# Connect to the LanceDB database
|
44 |
-
db = lancedb.connect("content
|
45 |
-
table = db.open_table("
|
46 |
|
47 |
def hybrid_search(text):
|
48 |
results = table.search(text, query_type="hybrid").limit(5).to_pandas()
|
|
|
34 |
|
35 |
# Define variables
|
36 |
temperature = 0.0
|
37 |
+
max_new_tokens = 1400
|
38 |
top_p = 0.95
|
39 |
repetition_penalty = 1.0
|
40 |
+
min_new_tokens = 700
|
41 |
early_stopping = False
|
42 |
|
43 |
# Connect to the LanceDB database
|
44 |
+
db = lancedb.connect("content 19/lancedb_data")
|
45 |
+
table = db.open_table("edunat19")
|
46 |
|
47 |
def hybrid_search(text):
|
48 |
results = table.search(text, query_type="hybrid").limit(5).to_pandas()
|