JaphetHernandez commited on
Commit
6eb5316
·
verified ·
1 Parent(s): 6ec9418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ tokenizer.pad_token = tokenizer.eos_token
16
 
17
  MAX_INPUT_TOKEN_LENGTH = 10000
18
 
19
- def generate_response(input_text, temperature=0.7, max_new_tokens=100):
20
  input_ids = tokenizer.encode(input_text, return_tensors='pt').to(model.device)
21
 
22
  if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
@@ -65,7 +65,7 @@ def main():
65
  st.write("Archivo CSV cargado exitosamente:")
66
  st.write(df.head())
67
 
68
- initial_prompt = f"The following is a list of job titles: {job_titles}. Please provide the first job title from this list."
69
  st.write(f"Query: {query}")
70
  st.write(f"Prompt inicial: {initial_prompt}")
71
 
 
16
 
17
  MAX_INPUT_TOKEN_LENGTH = 10000
18
 
19
+ def generate_response(input_text, temperature=0.5, max_new_tokens=100):
20
  input_ids = tokenizer.encode(input_text, return_tensors='pt').to(model.device)
21
 
22
  if input_ids.shape[1] > MAX_INPUT_TOKEN_LENGTH:
 
65
  st.write("Archivo CSV cargado exitosamente:")
66
  st.write(df.head())
67
 
68
+ initial_prompt = f"I have a list of job titles: {job_titles}. Please extract and return only the first job title from this list without repeating."
69
  st.write(f"Query: {query}")
70
  st.write(f"Prompt inicial: {initial_prompt}")
71