with Hugging Face and Roboflow ?
Want to have a nice know-it-all bot that can answer any question?. This action allows you to ask a question and get an answer from a trained model. See the docs
Run inference on classification models hosted on Roboflow. See the documentation
This task reads some image input and outputs the likelihood of classes. This action allows you to classify images into categories. See the docs
Run inference on your object detection models hosted on Roboflow. See the documentation
This task is well known to translate text from one language to another. See the docs
The Hugging Face API provides access to a vast range of machine learning models, primarily for natural language processing (NLP) tasks like text classification, translation, summarization, and question answering. It lets you leverage pre-trained models and fine-tune them on your data. Using the API within Pipedream, you can automate workflows that involve language processing, integrate AI insights into your apps, or respond to events with AI-generated content.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hugging_face: {
type: "app",
app: "hugging_face",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://huggingface.co/api/whoami-v2`,
headers: {
Authorization: `Bearer ${this.hugging_face.$auth.access_token}`,
},
})
},
})
The Roboflow API is a robust machine learning interface that allows developers to upload, annotate, train, and deploy computer vision models. Using Pipedream, you can create powerful, serverless workflows to automate tasks involving image and video processing. With the API, you can programmatically manage datasets, kick off model training, and utilize trained models to analyze new data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
roboflow: {
type: "app",
app: "roboflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.roboflow.com/`,
params: {
api_key: `${this.roboflow.$auth.api_key}`,
},
})
},
})