jableable commited on
Commit
0eb8c57
1 Parent(s): 7980620

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -3,12 +3,15 @@ from transformers import pipeline
3
  #from datasets import load_dataset, Image
4
  from huggingface_hub import from_pretrained_keras
5
 
6
- pipe = pipeline('sentiment-analysis')
7
- text = st.text_area('enter some text!')
8
 
9
- if text:
10
- out = pipe(text)
11
- st.json(out)
 
 
 
 
 
12
 
13
  #loaded_model = keras.saving.load_model("jableable/road_model")
14
 
 
3
  #from datasets import load_dataset, Image
4
  from huggingface_hub import from_pretrained_keras
5
 
 
 
6
 
7
+ model = from_pretrained_keras("jableable/road_model")
8
+
9
+ #pipe = pipeline('sentiment-analysis')
10
+ #text = st.text_area('enter some text!')
11
+
12
+ #if text:
13
+ #out = pipe(text)
14
+ #st.json(out)
15
 
16
  #loaded_model = keras.saving.load_model("jableable/road_model")
17