Spaces:
Sleeping
Sleeping
Samantha Hipple
commited on
Commit
·
fe68765
1
Parent(s):
e879087
project init
Browse files- app.py +12 -0
- requirements.txt +2 -0
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
from PIL import Image
|
4 |
+
|
5 |
+
|
6 |
+
generator = pipeline(task='text-generation', model="gpt2")
|
7 |
+
|
8 |
+
st.title("Affective Journaling Assistant")
|
9 |
+
|
10 |
+
emotion_data = st.text_input('Enter FER Results')
|
11 |
+
|
12 |
+
st.write(generator(emotion_data))
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
transformers
|