Spaces:
Running
Running
Update app.py
Browse files
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=
|
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=
|
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=
|
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:
|