This file contains 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 io | |
import boto3 | |
import json | |
import csv | |
# Get the Endpoint name form the Environment. | |
ENDPOINT_NAME = os.environ['ENDPOINT_NAME'] | |
# Make a SageMaker Runtime reference. |
This file contains 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 sagemaker.huggingface import HuggingFaceModel | |
from sagemaker.serverless import ServerlessInferenceConfig | |
import sagemaker | |
role = sagemaker.get_execution_role() | |
# Hub Model configuration. https://huggingface.co/models | |
hub = { | |
'HF_MODEL_ID':'dalle-mini/dalle-mini', | |
'HF_TASK':'image-classification' | |
} |
This file contains 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 sagemaker.huggingface import HuggingFaceModel | |
from sagemaker.serverless import ServerlessInferenceConfig | |
import sagemaker | |
role = sagemaker.get_execution_role() | |
# Hub Model configuration. https://huggingface.co/models | |
hub = { | |
'HF_MODEL_ID':'dalle-mini/dalle-mini', | |
'HF_TASK':'image-classification' | |
} |
This file contains 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
object database extends Graph(databaseName = "graphTest") { | |
val airports: DocumentCollection[Airport] = vertex[Airport] | |
val flights: DocumentCollection[Flight] = edge[Flight] | |
val airportSearch: View[Airport] = view( | |
name = "airportSearch", | |
collection = airports, | |
analyzers = List(Analyzer.Identity), | |
includeAllFields = true, | |
fields = Airport.name -> List(Analyzer.TextEnglish) | |
) |
This file contains 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
package parallelai.loop.api.dao | |
import java.net.URL | |
import com.outr.arango.CollectionType._ | |
import com.outr.arango._ | |
import com.outr.arango.query._ | |
import com.outr.arango.transaction.Transaction | |
import io.youi.net.URL | |
import parallelai.loop.api.model.dto.Long |