typetext
{
"input_text": "And then just qualitatively speaking, if we look at the early phases of the 5G cycle, the CapEx budget, the investments that you've been making, the ramp up of the high-performance monolithics, the increase in the cost of products, it sounds like there's a lot of headwinds there.",
"max_gen_len": 600,
"repetition_penalty": 1,
"temperature": 1,
"top_k": 5,
"top_p": 0.9
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_apa**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jasonqi146/financial_question_generation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jasonqi146/financial_question_generation:400a4e9031093edca43dd60c965cf6051cbc480b9e814490ad1c7c46d9361f26",
{
input: {
input_text: "And then just qualitatively speaking, if we look at the early phases of the 5G cycle, the CapEx budget, the investments that you've been making, the ramp up of the high-performance monolithics, the increase in the cost of products, it sounds like there's a lot of headwinds there.",
max_gen_len: 600,
repetition_penalty: 1,
temperature: 1,
top_k: 5,
top_p: 0.9
}
}
);
// 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
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_apa**********************************
This is your API token. Keep it to yourself.
import replicate
Run jasonqi146/financial_question_generation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jasonqi146/financial_question_generation:400a4e9031093edca43dd60c965cf6051cbc480b9e814490ad1c7c46d9361f26",
input={
"input_text": "And then just qualitatively speaking, if we look at the early phases of the 5G cycle, the CapEx budget, the investments that you've been making, the ramp up of the high-performance monolithics, the increase in the cost of products, it sounds like there's a lot of headwinds there.",
"max_gen_len": 600,
"repetition_penalty": 1,
"temperature": 1,
"top_k": 5,
"top_p": 0.9
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_apa**********************************
This is your API token. Keep it to yourself.
Run jasonqi146/financial_question_generation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "jasonqi146/financial_question_generation:400a4e9031093edca43dd60c965cf6051cbc480b9e814490ad1c7c46d9361f26",
"input": {
"input_text": "And then just qualitatively speaking, if we look at the early phases of the 5G cycle, the CapEx budget, the investments that you\'ve been making, the ramp up of the high-performance monolithics, the increase in the cost of products, it sounds like there\'s a lot of headwinds there.",
"max_gen_len": 600,
"repetition_penalty": 1,
"temperature": 1,
"top_k": 5,
"top_p": 0.9
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "qtehfzthzjgathh5755ugeerjm",
"model": "jasonqi146/financial_question_generation",
"version": "400a4e9031093edca43dd60c965cf6051cbc480b9e814490ad1c7c46d9361f26",
"input": {
"input_text": "And then just qualitatively speaking, if we look at the early phases of the 5G cycle, the CapEx budget, the investments that you've been making, the ramp up of the high-performance monolithics, the increase in the cost of products, it sounds like there's a lot of headwinds there.",
"max_gen_len": 600,
"repetition_penalty": 1,
"temperature": 1,
"top_k": 5,
"top_p": 0.9
},
"logs": "input tokenized\nThank you. Good afternoon. I wanted to ask a little bit about the 5G cycle and the headwinds that you saw in Q1. So when you think about the CapEx budget, the incremental CapEx to build, the new high-performance monolithics, the increase in the cost of products, it sounds like there's been a lot of soft spots in that budget. Do you see any areas where you can lay out some of the additional CapEx that you could be to offset some of those soft spots?",
"output": "Thank you. Good afternoon. I wanted to ask a little bit about the 5G cycle and the headwinds that you saw in Q1. So when you think about the CapEx budget, the incremental CapEx to build, the new high-performance monolithics, the increase in the cost of products, it sounds like there's been a lot of soft spots in that budget. Do you see any areas where you can lay out some of the additional CapEx that you could be to offset some of those soft spots?",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-03-30T20:53:47.137773Z",
"started_at": "2023-03-30T20:53:47.242925Z",
"completed_at": "2023-03-30T20:53:54.523572Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/qtehfzthzjgathh5755ugeerjm/cancel",
"get": "https://api.replicate.com/v1/predictions/qtehfzthzjgathh5755ugeerjm"
},
"metrics": {
"predict_time": 7.280647,
"total_time": 7.385799
}
}