Ifeanyi
commited on
Commit
•
d4257c1
1
Parent(s):
1739e09
tellme.ai app files
Browse files
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
|