-
Notifications
You must be signed in to change notification settings - Fork 5
Correções de execução do markapi. #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: markupapp
Are you sure you want to change the base?
Changes from all commits
77ccda1
bbee01a
c161e33
2764e99
516c799
e71b7e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,7 +21,7 @@ class ReferenceStatus(models.IntegerChoices): | |||||
| class Reference(CommonControlField, ClusterableModel): | ||||||
| mixed_citation = models.TextField(_("Mixed Citation"), null=False, blank=True) | ||||||
|
|
||||||
| status = models.IntegerField( | ||||||
| estatus = models.IntegerField( | ||||||
|
||||||
| estatus = models.IntegerField( | |
| status = models.IntegerField( |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -25,7 +25,7 @@ def form_valid(self, form): | |||||
| if linea: # Evitar procesar líneas vacías | ||||||
| new_reference = Reference.objects.create( | ||||||
| mixed_citation=linea, | ||||||
| status=1, # Estatus predeterminado | ||||||
| estatus=1, # Estatus predeterminado | ||||||
|
||||||
| estatus=1, # Estatus predeterminado | |
| status=1, # Estatus predeterminado |
Copilot
AI
Mar 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates references with a hard-coded estatus=1. Since ReferenceStatus exists and is used elsewhere, prefer using the enum value (e.g., ReferenceStatus.CREATING) to avoid magic numbers and keep behavior stable if the enum changes.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,4 +50,13 @@ google-generativeai==0.3.2 | |
|
|
||
| # Docx | ||
| # ------------------------------------------------------------------------------ | ||
| python-docx==1.1.2 | ||
| python-docx==1.1.2 | ||
|
|
||
| # huggingface-hub | ||
| # ------------------------------------------------------------------------------ | ||
| huggingface_hub==0.26.1 # https://pypi.org/project/huggingface-hub/ | ||
|
|
||
| # Python Bindings for llama.cpp | ||
| # ------------------------------------------------------------------------------ | ||
| llama-cpp-python==0.3.14 # https://llama-cpp-python.readthedocs.io/en/latest/ | ||
|
Comment on lines
+55
to
+61
|
||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing LLAMA_ENABLED default from False to True makes the llama model mandatory for all deployments. This is a significant behavioral change that:
Consider whether this should be an opt-in change rather than changing the default, or ensure proper deployment documentation is updated.