-
Notifications
You must be signed in to change notification settings - Fork 3
Optimize memory footprint of pdf problem transcription task #2433
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dde8a75
removing unused arg
shanbady b45bb85
adding dep
shanbady 3e00415
removing old dep
shanbady 462c8cf
try install from source
shanbady 4a9865c
pin python
shanbady 169fd9a
pin python
shanbady defdb98
test
shanbady 78d5e4a
explicitely use right version of python
shanbady 32e6c19
explicitely use right version of python
shanbady f7f7da0
remobing unused steps
shanbady eea03ee
remove comment
shanbady 8dde577
fixing other bug with canvas task json serialization
shanbady d5584b4
adding latext .tex files
shanbady 985c168
adding migration
shanbady 05cfd55
fix test
shanbady e46f516
pinning to pypi and removing unused ci steps
shanbady f07a4a0
pushing fix for ci
shanbady e3c7295
test
shanbady File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...ning_resources/migrations/0094_alter_contentsummarizerconfiguration_allowed_extensions.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Generated by Django 4.2.23 on 2025-08-14 15:20 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("learning_resources", "0093_tutorproblem_view_group"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="contentsummarizerconfiguration", | ||
name="allowed_extensions", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
(".csv", ".csv"), | ||
(".doc", ".doc"), | ||
(".docx", ".docx"), | ||
(".htm", ".htm"), | ||
(".html", ".html"), | ||
(".json", ".json"), | ||
(".m", ".m"), | ||
(".mat", ".mat"), | ||
(".md", ".md"), | ||
(".pdf", ".pdf"), | ||
(".ppt", ".ppt"), | ||
(".pptx", ".pptx"), | ||
(".ps", ".ps"), | ||
(".py", ".py"), | ||
(".r", ".r"), | ||
(".rtf", ".rtf"), | ||
(".sjson", ".sjson"), | ||
(".srt", ".srt"), | ||
(".txt", ".txt"), | ||
(".vtt", ".vtt"), | ||
(".xls", ".xls"), | ||
(".xlsx", ".xlsx"), | ||
(".xml", ".xml"), | ||
(".doc", ".doc"), | ||
(".docx", ".docx"), | ||
(".htm", ".htm"), | ||
(".html", ".html"), | ||
(".json", ".json"), | ||
(".md", ".md"), | ||
(".pdf", ".pdf"), | ||
(".tex", ".tex"), | ||
(".ppt", ".ppt"), | ||
(".pptx", ".pptx"), | ||
(".rtf", ".rtf"), | ||
(".sjson", ".sjson"), | ||
(".srt", ".srt"), | ||
(".txt", ".txt"), | ||
(".vtt", ".vtt"), | ||
(".xml", ".xml"), | ||
], | ||
max_length=128, | ||
), | ||
blank=True, | ||
default=list, | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 seems unrelated to the rest of the pr. Is it an intentional change?
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 could be unnecessary but it was introduced to fix a strange issue adding pypdfium2 uncovered with the python version our ci runner uses (it had been using 3.10 all along and not the pinned 3.12). will see if i can take this step out