ChangranHuuu commited on
Commit
ad30f0a
·
verified ·
1 Parent(s): e9b8926

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -76,7 +76,7 @@ def generate_cheatsheet_func(training_data_text, model_name_input, progress=gr.P
76
  generator_template=GENERATOR_PROMPT,
77
  cheatsheet_template=CURATOR_PROMPT,
78
  temperature=0.1,
79
- max_tokens=8192
80
  )
81
  cheatsheet_content = results_dict.get("final_cheatsheet", cheatsheet_content)
82
  except Exception as e:
@@ -107,7 +107,7 @@ def get_answers_func(user_query, model_name_input):
107
  generator_template=GENERATOR_PROMPT,
108
  cheatsheet_template=CURATOR_PROMPT,
109
  temperature=0.1,
110
- max_tokens=8192
111
  )
112
  answer_with_cheatsheet = results_with_cheatsheet.get("final_answer", "Error: Could not extract answer.")
113
  except Exception as e:
@@ -124,7 +124,7 @@ def get_answers_func(user_query, model_name_input):
124
  generator_template=GENERATOR_PROMPT,
125
  cheatsheet_template=CURATOR_PROMPT,
126
  temperature=0.1,
127
- max_tokens=8192
128
  )
129
  answer_without_cheatsheet = results_without_cheatsheet.get("final_answer", "Error: Could not extract answer.")
130
  except Exception as e:
 
76
  generator_template=GENERATOR_PROMPT,
77
  cheatsheet_template=CURATOR_PROMPT,
78
  temperature=0.1,
79
+ max_tokens=2048
80
  )
81
  cheatsheet_content = results_dict.get("final_cheatsheet", cheatsheet_content)
82
  except Exception as e:
 
107
  generator_template=GENERATOR_PROMPT,
108
  cheatsheet_template=CURATOR_PROMPT,
109
  temperature=0.1,
110
+ max_tokens=2048
111
  )
112
  answer_with_cheatsheet = results_with_cheatsheet.get("final_answer", "Error: Could not extract answer.")
113
  except Exception as e:
 
124
  generator_template=GENERATOR_PROMPT,
125
  cheatsheet_template=CURATOR_PROMPT,
126
  temperature=0.1,
127
+ max_tokens=2048
128
  )
129
  answer_without_cheatsheet = results_without_cheatsheet.get("final_answer", "Error: Could not extract answer.")
130
  except Exception as e: