pispolita commited on
Commit
21c7ff6
1 Parent(s): 8cee1e8
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -1,6 +1,27 @@
1
  import gradio as gr
2
  from fastai.vision.all import *
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  learn = load_learner('export.pkl')
5
 
6
  categories = ('grizzly', 'black', 'teddy')
 
1
  import gradio as gr
2
  from fastai.vision.all import *
3
 
4
+ title = """
5
+ <div style="text-align: center; max-width: 500px; margin: 0 auto;">
6
+ <div
7
+ style="
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: 0.8rem;
11
+ font-size: 1.75rem;
12
+ margin-bottom: 10px;
13
+ "
14
+ >
15
+ <h1 style="font-weight: 600; margin-bottom: 7px;">
16
+ Grizzly/Black/Teddy bear classification
17
+ </h1>
18
+ </div>
19
+ <p style="margin-bottom: 10px;font-size: 94%;font-weight: 100;line-height: 1.5em;">
20
+ Please upload a Grizzly, Black or Teddy bear image for classification.
21
+ </p>
22
+ </div>
23
+ """
24
+
25
  learn = load_learner('export.pkl')
26
 
27
  categories = ('grizzly', 'black', 'teddy')