-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
44 lines (39 loc) · 1.36 KB
/
ui.R
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
## app.R ##
library(shinydashboard)
library(shiny)
ui <- dashboardPage(
dashboardHeader(title = "Next word prediction - 3 next words based on Probability"),
dashboardSidebar(
sidebarMenu(
menuItem("Two to Five", tabName = "2or3", icon = icon("dashboard")),
menuItem("Blank", tabName = "widgets", icon = icon("th"))
)
)
,
## Body content
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "2or3",
box(
title = "Randomisation based on Probabiilty implemented - Always displays 3 top words",
textInput(inputId = "inputWords"
, label="Please Enter Two to Five words: Delay is upto 30 seconds for the first result"
,value="one of THe"),
actionButton(inputId="submit", label="Submit")
),
box( #Display the three suggested outputs
title = "The next suggested words are:",
tableOutput("outTable")
),
box(title = "Input text after lowercasing and cleaning was:",
textOutput("outputWords")
)
),
# Second tab content
tabItem( tabName = "widgets",
h2("Widgets tab content")
)
)
)
)