andreasjansson / cog-markdown-example

Simple example of a Cog model that produces Markdown output

  • Public
  • 23 runs
  • GitHub
  • License

😵 Uh oh! This model can't be run on Replicate because it was built with a version of Cog that is no longer supported. Consider opening an issue on the model's GitHub repository to see if it can be updated to use a recent version of Cog. If you need any help, please hop into our Discord channel or Contact us about it.

Run time and cost

This model runs on CPU hardware.

Readme

This is a simple example to demonstrate how to output markdown from Cog.

If Cog returns a pathlib.Path pointing to a generated markdown file with extension .md it will be rendered to HTML on Replicate. This is demonstrated in the predict() function in predict.py.

We use GitHub-flavored Markdown to do the rendering, but there may be some features missing for security reasons.