Public
Edited
Apr 2, 2023
Insert cell
Insert cell
vitro = FileAttachment("The Virosexuals - Orion J. Facey.txt").text()
Insert cell
cloud = FileAttachment("Cloud Nine - Caryl Churchill.txt").text()
Insert cell
torch = FileAttachment("Torch Song Trilogy_ Plays - Harvey Fierstein.txt").text()
Insert cell
torchClean = torch.split('\n')
Insert cell
cloudClean = cloud.split('\n')
Insert cell
viroClean = vitro.split('\n').filter(x => x.length >= 50)
Insert cell
merged = [...viroClean, ...cloudClean, ...torchClean].map(x => x.trim())
Insert cell
viroData = merged.map((sentence, index) => {
return {
instruction: viroClean[index-1] || 'start',
input: '',
output: sentence
}
})
Insert cell
{
"description": "A shorter template for flat training",
"prompt_input": "{instruction}\n{input}\n\n",
"prompt_no_input": "{instruction}\n\n",
"response_split": "\n\n"
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more