This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langflow.base.models.model import LCModelComponent | |
from langflow.field_typing import LanguageModel | |
from langflow.inputs import MessageTextInput, SecretStrInput | |
from langflow.io import DictInput, DropdownInput | |
class AmazonBedrockComponent(LCModelComponent): | |
display_name: str = "Amazon Bedrock" | |
description: str = "Generate text using Amazon Bedrock LLMs." | |
icon = "Amazon" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain_community.embeddings import BedrockEmbeddings | |
from langflow.base.models.model import LCModelComponent | |
from langflow.field_typing import Embeddings | |
from langflow.inputs import SecretStrInput | |
from langflow.io import DropdownInput, MessageTextInput, Output | |
class AmazonBedrockEmbeddingsComponent(LCModelComponent): | |
display_name: str = "Amazon Bedrock Embeddings" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http'); | |
const ADS1115 = require('ads1115') | |
const proxy = require('http-proxy'); | |
const gpio = require('rpi-gpio'); | |
const ws = require('ws'); | |
drem = 'd1vy159ra4kdv0.cloudfront.net'; | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
redshift = boto3.client('redshift') | |
credentials = redshift.get_cluster_credentials( | |
DbUser='demouser', | |
DbName='dev', | |
ClusterIdentifier='redshiftml', | |
DurationSeconds=3600, | |
AutoCreate=False | |
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import argparse | |
import tensorflow as tf | |
# global variables | |
width = 28 | |
height = 28 | |
n_class = 10 | |
# tfrecord parser |
NewerOlder