Ifeanyi commited on
Commit
d4257c1
1 Parent(s): 1739e09

tellme.ai app files

Browse files
Files changed (6) hide show
  1. app.py +13 -0
  2. birdA.jpg +0 -0
  3. birdB.jpg +0 -0
  4. birdC.jpg +0 -0
  5. blue.jpg +0 -0
  6. requirements.txt +3 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # import required libraries
2
+ from transformers import pipeline
3
+ import gradio as gr
4
+ import timm
5
+
6
+ # build gradio interface
7
+ model = pipeline("image-classification")
8
+ examples = ["birdA.jpg", "birdB.jpg", "birdC.jpg"]
9
+ gr.Interface.from_pipeline(model,
10
+ title = "tellme.ai",
11
+ examples = examples,
12
+ theme = gr.themes.Soft(),
13
+ css=".gradio-container {background: url('file=blue.jpg')}").launch(share = True)
birdA.jpg ADDED
birdB.jpg ADDED
birdC.jpg ADDED
blue.jpg ADDED
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ transformers
2
+ gradio
3
+ timm