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.
arXiv URL (abs/pdf/html)
Include figure definitions in the output.
Default: false
Include comments in the expanded LaTeX output.
Default: true
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 turian/arxiv-llm-text using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "turian/arxiv-llm-text:f4159e2fcbe3ad56f7c961b070256bad201e8b4b66d128011f1099774ebc02fb", { input: { arxiv_url: "https://arxiv.org/abs/2004.10151", include_figures: false, include_comments: true } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "turian/arxiv-llm-text:f4159e2fcbe3ad56f7c961b070256bad201e8b4b66d128011f1099774ebc02fb", input={ "arxiv_url": "https://arxiv.org/abs/2004.10151", "include_figures": False, "include_comments": True } ) 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": "turian/arxiv-llm-text:f4159e2fcbe3ad56f7c961b070256bad201e8b4b66d128011f1099774ebc02fb", "input": { "arxiv_url": "https://arxiv.org/abs/2004.10151", "include_figures": false, "include_comments": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2024-12-15T22:02:48.857603Z", "created_at": "2024-12-15T22:01:18.466000Z", "data_removed": false, "error": null, "id": "2c0zjx8hg9rga0ckshbt499hfm", "input": { "arxiv_url": "https://arxiv.org/abs/2004.10151", "include_figures": false, "include_comments": true }, "logs": null, "metrics": { "predict_time": 0.668625985, "total_time": 90.391603 }, "output": "https://replicate.delivery/czjl/efsqABURzdvZdEpyXejqOsTPPlh9nmrUQdg1hps6hraRgg2nA/2004.10151_expanded.tex", "started_at": "2024-12-15T22:02:48.188977Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-hwd36ultdt66qdy5gbdojckym52uw33i42imcedxc2tyeuqrwq5a", "get": "https://api.replicate.com/v1/predictions/2c0zjx8hg9rga0ckshbt499hfm", "cancel": "https://api.replicate.com/v1/predictions/2c0zjx8hg9rga0ckshbt499hfm/cancel" }, "version": "f4159e2fcbe3ad56f7c961b070256bad201e8b4b66d128011f1099774ebc02fb" }