-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSolART.Rmd
73 lines (58 loc) · 1.55 KB
/
SolART.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: "Hackletes"
output: html_document
runtime: shiny
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(shiny)
library(tidyverse)
library(shinythemes)
library(ggplot2)
library(gganimate)
```
## SolART
```{r}
# Define UI for application
ui <- fluidPage(
# Dark theme for app
theme = shinytheme("cyborg"),
# Application title
titlePanel("SolART"),
# Top bar with options for art style and sound
sidebarLayout(
fluidRow(
# Selection of art style
column(width = 6,
radioButtons("style",
"Art Style:",
choices = c("Abstract",
"Microscope",
"Texture"))),
# Selection of baseline for pitch/tone
column(width = 6,
checkboxInput("sound", "Play Sound:"),
sliderInput("pitch",
"Baseline pitch:",
min = 1,
max = 50,
value = 30))
),
# Show a plot of the generated images
mainPanel(
plotOutput("solart")
)
)
)
# Define server logic required to draw a histogram
server <- function(input, output) {
output$solart <- renderPlot({
#run some sort of python code chunk through here
})
}
# Run the application
shinyApp(ui = ui, server = server)
```
```{python}
# Put refined code from the Google Colab here!
```