Spaces:
Running
Running
luanpoppe
commited on
Commit
·
e4d76bf
1
Parent(s):
1d9bbb2
fix: removendo user_message hard coded
Browse files- langchain_backend/utils.py +1 -1
- resumos/views.py +1 -1
langchain_backend/utils.py
CHANGED
@@ -152,7 +152,7 @@ After completing these steps, generate the response with around 5000 characteres
|
|
152 |
Example: :
|
153 |
|
154 |
{{
|
155 |
-
"nome_do_memorial": "[Insira aqui o número
|
156 |
|
157 |
"argumentos": "
|
158 |
[b]Argumento 1:[/b]
|
|
|
152 |
Example: :
|
153 |
|
154 |
{{
|
155 |
+
"nome_do_memorial": "[Insira aqui o número da equipe] ",
|
156 |
|
157 |
"argumentos": "
|
158 |
[b]Argumento 1:[/b]
|
resumos/views.py
CHANGED
@@ -35,7 +35,7 @@ class ResumoView(APIView):
|
|
35 |
# print('listaPDFs: ', listaPDFs)
|
36 |
|
37 |
system_prompt = data.get("system_prompt", DEFAULT_SYSTEM_PROMPT)
|
38 |
-
resposta_llm = get_llm_answer_summary(system_prompt, "
|
39 |
|
40 |
for file in listaPDFs:
|
41 |
os.remove(file)
|
|
|
35 |
# print('listaPDFs: ', listaPDFs)
|
36 |
|
37 |
system_prompt = data.get("system_prompt", DEFAULT_SYSTEM_PROMPT)
|
38 |
+
resposta_llm = get_llm_answer_summary(system_prompt, data["user_message"], listaPDFs, model=model, isIterativeRefinement=data["iterative_refinement"])
|
39 |
|
40 |
for file in listaPDFs:
|
41 |
os.remove(file)
|