forked from nanxstats/imgsvd
-
Notifications
You must be signed in to change notification settings - Fork 30
/
ui.R
34 lines (31 loc) · 742 Bytes
/
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
require(mxnet)
require(imager)
require(shiny)
require(jpeg)
require(png)
shinyUI(pageWithSidebar(
headerPanel(title = 'Image Classification using MXNetR',
windowTitle = 'Image Classification using MXNetR'),
sidebarPanel(
includeCSS('boot.css'),
tabsetPanel(
id = "tabs",
tabPanel("Upload Image",
fileInput('file1', 'Upload a PNG / JPEG File:')),
tabPanel(
"Use the URL",
textInput("url", "Image URL:", "http://"),
actionButton("goButton", "Go!")
)
)
),
mainPanel(
h3("Image"),
tags$hr(),
imageOutput("originImage", height = "auto"),
tags$hr(),
h3("What is in it?"),
tags$hr(),
verbatimTextOutput("res")
)
))