Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input image
Make output KaTeX compatible
Default: false
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jd7h/texify using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jd7h/texify:485f0de15534ab64d5f10997c6e70b979455dee549163d642d00d36c6f7739a2", { input: { image: "https://replicate.delivery/pbxt/KXEMZOV28NvHyJGVOTusSgn0YG6rPjZDCv6qj8Qt7ie7rQXj/300.png", katex_compatible: false } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "jd7h/texify:485f0de15534ab64d5f10997c6e70b979455dee549163d642d00d36c6f7739a2", input={ "image": "https://replicate.delivery/pbxt/KXEMZOV28NvHyJGVOTusSgn0YG6rPjZDCv6qj8Qt7ie7rQXj/300.png", "katex_compatible": False } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "485f0de15534ab64d5f10997c6e70b979455dee549163d642d00d36c6f7739a2", "input": { "image": "https://replicate.delivery/pbxt/KXEMZOV28NvHyJGVOTusSgn0YG6rPjZDCv6qj8Qt7ie7rQXj/300.png", "katex_compatible": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2024-03-08T17:07:46.483643Z", "created_at": "2024-03-08T17:06:56.250003Z", "data_removed": false, "error": null, "id": "m4xxqp3bhtmns4ddf37ga73b2e", "input": { "image": "https://replicate.delivery/pbxt/KXEMZOV28NvHyJGVOTusSgn0YG6rPjZDCv6qj8Qt7ie7rQXj/300.png", "katex_compatible": false }, "logs": null, "metrics": { "predict_time": 0.702207, "total_time": 50.23364 }, "output": "\n$$|\\ \\frac{1}{x}=\\frac{1}{c}|=|\\ \\frac{c-x}{xc}|=\\frac{1}{|x|}\\cdot\\frac{1}{|c|}\\cdot|x-c|$$\n\nThe factor $$\\frac{1}{|x|}$$ is not good if its near 0.\n", "started_at": "2024-03-08T17:07:45.781436Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m4xxqp3bhtmns4ddf37ga73b2e", "cancel": "https://api.replicate.com/v1/predictions/m4xxqp3bhtmns4ddf37ga73b2e/cancel" }, "version": "485f0de15534ab64d5f10997c6e70b979455dee549163d642d00d36c6f7739a2" }
Choose a file from your machine
Hint: you can also drag files onto the input