Spaces:
Sleeping
Sleeping
Commit ·
03ad973
1
Parent(s): 5fc0be0
sort after dedup
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def field_prompt(code):
|
|
| 44 |
|
| 45 |
print(f"field helper result: {field_helper_result}")
|
| 46 |
|
| 47 |
-
fields = list(set(
|
| 48 |
print(f"fields: {fields}")
|
| 49 |
|
| 50 |
prompt = f"```\n{code}\n```\nWhat are the variable name and type for the following memory accesses:{', '.join(fields)}?\n"
|
|
|
|
| 44 |
|
| 45 |
print(f"field helper result: {field_helper_result}")
|
| 46 |
|
| 47 |
+
fields = sorted(list(set([e['expr'] for e in field_helper_result[0] if e['expr'] != ''])))
|
| 48 |
print(f"fields: {fields}")
|
| 49 |
|
| 50 |
prompt = f"```\n{code}\n```\nWhat are the variable name and type for the following memory accesses:{', '.join(fields)}?\n"
|