Spaces:
Sleeping
Sleeping
Ezi Ozoani
commited on
Commit
·
dd4a89f
1
Parent(s):
a72849b
requirements
Browse files- app.py +5 -1
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from pathlib import Path
|
| 3 |
import base64
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Initial page config
|
| 6 |
|
|
@@ -280,7 +284,7 @@ were utilized to estimate the carbon impact.*
|
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
-
|
| 284 |
|
| 285 |
# Placeholders, help, and options
|
| 286 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from pathlib import Path
|
| 3 |
import base64
|
| 4 |
+
from transformers import pipeline
|
| 5 |
+
from PIL import Image
|
| 6 |
+
|
| 7 |
+
|
| 8 |
|
| 9 |
# Initial page config
|
| 10 |
|
|
|
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
+
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
| 288 |
|
| 289 |
# Placeholders, help, and options
|
| 290 |
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
torch
|