Spaces:
Sleeping
Sleeping
Commit
·
97f1b33
1
Parent(s):
68150c9
create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
from PIL import Image
|
4 |
+
|
5 |
+
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
6 |
+
|
7 |
+
st.title("Hot Dog? Or Not?")
|
8 |
+
|
9 |
+
col1, col2 = st.columns(2)
|
10 |
+
|
11 |
+
predictions = pipeline("Explain TCP")
|
12 |
+
|
13 |
+
print(predictions)
|