HF RL Explorer

HttpResponse doesn't handle memoryview objects Description

HttpResponse doesn't handle memoryview objects Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). I am trying to write a BinaryField retrieved from the database into a HttpResponse. When the database is Sqlite this works correctly, but Postgresql returns the contents of the field…

The task

I am trying to write a BinaryField retrieved from the database into a HttpResponse. When the database is Sqlite this works correctly, but Postgresql returns the contents of the field as a memoryview object and it seems like current Django doesn't like this combination: from django.http import HttpResponse # String…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.