Spaces:
Runtime error
Runtime error
Akshay Vs
commited on
Commit
•
d0fa362
1
Parent(s):
4d6e76c
Test UI
Browse files
app.py
CHANGED
@@ -6,13 +6,9 @@ import concurrent.futures
|
|
6 |
from random import randint
|
7 |
|
8 |
# initializing session_state
|
9 |
-
|
10 |
os.system('pip install transformers')
|
11 |
|
12 |
-
st.title("Story AI")
|
13 |
-
st.markdown("<h1 style='text-align: center; color: white;'>I can generate intresting stories</h1>", unsafe_allow_html=True)
|
14 |
-
st.markdown('')
|
15 |
-
st.markdown('')
|
16 |
|
17 |
from transformers import pipeline, set_seed
|
18 |
|
@@ -42,3 +38,10 @@ def type_text(text):
|
|
42 |
|
43 |
#Streamlit
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
from random import randint
|
7 |
|
8 |
# initializing session_state
|
9 |
+
os.system('pip install torch==1.10.2+cu113 torchvision==0.11.3+cu113 torchaudio===0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html')
|
10 |
os.system('pip install transformers')
|
11 |
|
|
|
|
|
|
|
|
|
12 |
|
13 |
from transformers import pipeline, set_seed
|
14 |
|
|
|
38 |
|
39 |
#Streamlit
|
40 |
|
41 |
+
|
42 |
+
st.markdown("<h1 style='text-align: center; color: white;'>Generate intresting stories with GPT</h1>", unsafe_allow_html=True)
|
43 |
+
st.markdown('')
|
44 |
+
st.markdown('')
|
45 |
+
initial_text = st.text_input('Enter something to begin with...', placeholder='I look at her, then i realised', key="placeholder")
|
46 |
+
if initial_text:
|
47 |
+
st.write("Generating...")
|