Skip to content

Commit

Permalink
internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 681081771
  • Loading branch information
yifenglou authored and langfun authors committed Oct 3, 2024
1 parent db0b9be commit afbc55c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
13 changes: 0 additions & 13 deletions langfun/core/eval/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,6 @@ def save(
os.path.join(self.dir, Matching.MATCHES_JSON),
)

# Save mismatches.
pg.save(
[
# We force the output to be dict as its type may be defined
# within functors which could be deserialized.
pg.symbolic.deref(
pg.Dict(input=input, output=output), recursive=True
)
for input, output, _ in self.mismatches
],
os.path.join(self.dir, Matching.MISMATCHES_JSON),
)

if report:
pg.save(
self._html([self._render_result, self._render_matches]),
Expand Down
7 changes: 0 additions & 7 deletions langfun/core/eval/matching_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ def test_run(self):
os.path.join(s.dir, matching.Matching.MATCHES_JSON)
)
)
self.assertTrue(
os.path.exists(
os.path.join(
s.dir, matching.Matching.MISMATCHES_JSON
)
)
)
self.assertTrue(
os.path.exists(
os.path.join(
Expand Down
3 changes: 3 additions & 0 deletions langfun/core/llms/vertexai.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ def get_text_generation_model(
'text/plain',
'text/csv',
'text/html',
'text/xml',
'text/x-script.python',
'application/json',
]


Expand Down

0 comments on commit afbc55c

Please sign in to comment.