Spaces:
Runtime error
Runtime error
Akshay Vs
commited on
Commit
•
adc5ece
1
Parent(s):
013f27d
Added functionality
Browse files
app.py
CHANGED
@@ -41,6 +41,11 @@ def type_text(text):
|
|
41 |
st.markdown("<h1 style='text-align: center; color: white;'>Generate intresting stories with GPT</h1>", unsafe_allow_html=True)
|
42 |
st.markdown('')
|
43 |
st.markdown('')
|
44 |
-
|
45 |
-
if
|
46 |
st.write("Generating...")
|
|
|
|
|
|
|
|
|
|
|
|
41 |
st.markdown("<h1 style='text-align: center; color: white;'>Generate intresting stories with GPT</h1>", unsafe_allow_html=True)
|
42 |
st.markdown('')
|
43 |
st.markdown('')
|
44 |
+
text = st.text_input('Enter something to begin with...', placeholder='I look at her, then i realised', key="placeholder")
|
45 |
+
if text:
|
46 |
st.write("Generating...")
|
47 |
+
for _ in range(50):
|
48 |
+
result = generate(text)
|
49 |
+
text=slice(result)
|
50 |
+
with concurrent.futures.ThreadPoolExecutor() as executor:
|
51 |
+
executor.submit(type_text, result.replace(text,""))
|