4.2 KiB
OpenJourney V4 Hugging Face Model
Description
The OpenJourney V4 Hugging Face model is a powerful tool designed to convert text into images, specifically focusing on generating images.
Categories
- Text-to-Image Generation
- Hugging Face
Usage Instructions
Hugging Face Model
- API Endpoint: https://api-inference.huggingface.co/models/prompthero/openjourney-v4
- Authorization: Obtain your Hugging Face Token and replace
{HUGGING_FACE_TOKEN}in the code with your token.
Hugging Face Token
- Visit the Hugging Face website: https://huggingface.co/
- Sign in to your Hugging Face account or create a new one.
- Navigate to your profile settings.
- Find or generate your API token. If you don't have one, there is usually an option to create a new token.
- Copy the generated token; this will be your Hugging Face Token.
Firebase Storage Bucket, API Key, and Project ID
Firebase Project
- Go to the Firebase Console: https://console.firebase.google.com/
- Click on "Add project" or select an existing project.
- Follow the on-screen instructions to set up your Firebase project.
Firebase Storage Bucket
- In the Firebase Console, navigate to the "Storage" section.
- Click on "Get Started" if you haven't set up Firebase Storage yet.
- Click on "Add a bucket" to create a new storage bucket.
- Specify a unique name for your bucket; this will be your Firebase Storage Bucket name.
Firebase API Key
- In the Firebase Console, go to "Project settings" (gear icon in the left sidebar).
- Under the "General" tab, scroll down to the "Your apps" section.
- Find the Web App you want to use and click on the "</>" icon to get the configuration.
- Copy the value of the
apiKeyfield; this will be your Firebase API Key.
Firebase Project ID
- In the Firebase Console, go to "Project settings" (gear icon in the left sidebar).
- Under the "General" tab, you'll find the "Project ID" field.
- Copy the value of the "Project ID"; this will be your Firebase Project ID.
Agent Secrets on Agentverse
- Go to the Agentverse platform.
- Navigate to the Agent Secrets section.
- Create an agent and copy the code in it
- Add a new secret with the key
HUGGING_FACE_TOKENand the value as your Hugging Face Token. - Add a new secret with the key
FIREBASE_STORAGE_BUCKETand the value as your Firebase Storage Bucket name. - Add a new secret with the key
FIREBASE_API_KEYand the value as your Firebase API Key. - Add a new secret with the key
FIREBASE_PROJECT_IDand the value as your Firebase Project ID.
Steps to Enroll an Agent as a Service on Agentverse
You can integrate into DeltaV your Agents created on your local computer, IoT devices, in the VMs, or agents created on Agentverse. The steps are the same.
Once your agents are run, the agent protocol manifests are uploaded to the Almanac contract in the form of protocol digests. After uploading the manifests, we take the agent addresses and enroll the agents as a service under the "Services" tab in Agentverse.
Agent Validation on Agentverse Explorer
Note: You can validate the procedure by searching for your agent's address on Agent Explorer, checking if the protocols have been uploaded successfully. If not, you need to wait for some time (1-2 minutes) until the protocols are uploaded successfully.
Create a Service Group
- Start by creating a new service group on Agentverse.
- Set up the service group as PRIVATE (you will only be able to see your own agents).
- If you set up your service group as Public, anyone will be able to see your agents.
Service group has been created.
Create a Service
- To register the agents as a service, input a concise title and description for the agent service.
- Choose the service group for the agent service that you've created previously.
- Fill in the agent address in the Agent field.
- Set the task type to Task.
Now, your agents are enrolled as a service in Agentverse. You can manage and monitor them under the "Services" tab. Ensure that you follow the agent validation steps on Agent Explorer to confirm successful enrollment.
