Skip to content

Instantly share code, notes, and snippets.

View harusametime's full-sized avatar
:octocat:
Loving Sake and coding

Masaki Samejima harusametime

:octocat:
Loving Sake and coding
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import boto3
redshift = boto3.client('redshift')
credentials = redshift.get_cluster_credentials(
DbUser='demouser',
DbName='dev',
ClusterIdentifier='redshiftml',
DurationSeconds=3600,
AutoCreate=False
)
@harusametime
harusametime / paddleocr.ipynb
Created May 3, 2021 08:00
PaddleOCRを SageMaker にデプロイする
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
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"
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"