datasith commited on
Commit
6372ec1
·
1 Parent(s): 2b7d328
Files changed (1) hide show
  1. app.py +4 -20
app.py CHANGED
@@ -28,25 +28,6 @@ if os.path.isfile("categories.txt"):
28
  # info =
29
  description = "A Hugging Space demo created by datasith"
30
  title = "Cast parts: Deffective or Okay?"
31
- # css = \
32
- # '''
33
- # .div {
34
- # border: 2px solid black;
35
- # margin: 10px;
36
- # padding: 5%;
37
- # }
38
- # ul {
39
- # display: inline-block;
40
- # text-align: left;
41
- # }
42
- # img {
43
- # display: block;
44
- # margin: auto;
45
- # }
46
- # .description {
47
- # text-align: center;
48
- # }
49
- # '''
50
 
51
  article = \
52
  '''
@@ -109,5 +90,8 @@ image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
109
  label = gr.outputs.Label(num_top_classes=len(labels))
110
 
111
  # generate and launch interface
112
- interface = gr.Interface(fn=predict_image, inputs=image, outputs=label, article=article, theme='default', title=title, allow_flagging='never', description=description, examples=samples)
 
 
 
113
  interface.launch()
 
28
  # info =
29
  description = "A Hugging Space demo created by datasith"
30
  title = "Cast parts: Deffective or Okay?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  article = \
33
  '''
 
90
  label = gr.outputs.Label(num_top_classes=len(labels))
91
 
92
  # generate and launch interface
93
+ interface = gr.Interface(fn=predict_image, inputs=image,
94
+ outputs=label, article=article, theme='default',
95
+ title=title, allow_flagging='never', description=description,
96
+ examples=samples)
97
  interface.launch()