| 256 | return http_util.Respond(request, index, "application/json") |
| 257 | |
| 258 | def text_impl(self, ctx, run, tag, experiment, enable_markdown): |
| 259 | all_text = self._data_provider.read_tensors( |
| 260 | ctx, |
| 261 | experiment_id=experiment, |
| 262 | plugin_name=metadata.PLUGIN_NAME, |
| 263 | downsample=self._downsample_to, |
| 264 | run_tag_filter=provider.RunTagFilter(runs=[run], tags=[tag]), |
| 265 | ) |
| 266 | text = all_text.get(run, {}).get(tag, None) |
| 267 | if text is None: |
| 268 | return [] |
| 269 | return [ |
| 270 | process_event(d.wall_time, d.step, d.numpy, enable_markdown) |
| 271 | for d in text |
| 272 | ] |
| 273 | |
| 274 | @wrappers.Request.application |
| 275 | def text_route(self, request): |