Carlos Rosas commited on
Commit
52e3d62
·
verified ·
1 Parent(s): a5dfc2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,15 +34,15 @@ tokenizer.pad_token_id = 1
34
 
35
  # Define variables
36
  temperature = 0.0
37
- max_new_tokens = 1500
38
  top_p = 0.95
39
  repetition_penalty = 1.0
40
- min_new_tokens = 800
41
  early_stopping = False
42
 
43
  # Connect to the LanceDB database
44
- db = lancedb.connect("content 5/lancedb_data")
45
- table = db.open_table("sciencev4")
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()