-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
47 lines (41 loc) · 1.18 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
45
46
47
require(shiny)
shinyUI(fluidPage(
h1(strong("TSafer. Use to predict the next word!")),
h4("Please wait a few seconds while models are loading."),
fluidRow(
column(6,
textInput("text", label = h3("Enter your phrase here:"), width = '100%')
),
column(1,
br(), br(), br(),
actionButton("goButton", "Predict!")
),
column(5,
br(),
h4("Predicted words:"),
verbatimTextOutput("predictedWords")
)
),
fluidRow(
column(12,
h4("Instructions"),
verbatimTextOutput("instructions")
)
),
hr(),
fluidRow(
column(7,
h4("Visualization"),
tabsetPanel(
tabPanel("Word Cloud", plotOutput("wordCloud")),
tabPanel("Probability Table", tableOutput("wordTable")),
tabPanel("Model Summary", verbatimTextOutput("modelSummary"))
)
),
column(5,
br(),br(),
h4("AI comments:"),
verbatimTextOutput("AIanswer")
)
)
))