example_prompts / translate.yaml
MoritzLaurer's picture
MoritzLaurer HF staff
Upload prompt template translate.yaml
f88b497 verified
raw
history blame contribute delete
654 Bytes
prompt:
template: |- # The "|-" makes the following string behave similar to a string in """...""" in Python to render linebreaks correctly. For YAML syntax explanations see e.g. https://www.cloudbees.com/blog/yaml-tutorial-everything-you-need-get-started.
Translate the following text to {{language}}:
{{text}}
template_variables:
- language
- text
metadata:
name: "Simple Translator"
description: "A simple translation prompt for illustrating the standard prompt YAML format"
tags:
- translation
- multilinguality
version: "0.0.1"
author: "Guy van Babel"
client_parameters: {}
custom_data: {}