Spaces:
Runtime error
Runtime error
Akshay Vs
commited on
Commit
•
dcf54b4
1
Parent(s):
97df92e
Added functionality
Browse files
app.py
CHANGED
@@ -33,13 +33,13 @@ def type_text(text):
|
|
33 |
#text = input("Enter something to begin with... ")
|
34 |
#print(".\n.\n.\nGenerating\n.\n.\n.")
|
35 |
|
36 |
-
text = st.text_input('Enter something to begin with...', placeholder='I
|
37 |
-
st.write("Generating...")
|
38 |
if text:
|
|
|
39 |
for _ in range(50):
|
40 |
result = generate(text)
|
41 |
text=slice(result)
|
42 |
-
st.
|
43 |
#with concurrent.futures.ThreadPoolExecutor() as executor:
|
44 |
# executor.submit(type_text, result.replace(text,""))
|
45 |
|
|
|
33 |
#text = input("Enter something to begin with... ")
|
34 |
#print(".\n.\n.\nGenerating\n.\n.\n.")
|
35 |
|
36 |
+
text = st.text_input('Enter something to begin with...', placeholder='I looked at her, then i realized...', key="value")
|
|
|
37 |
if text:
|
38 |
+
st.write("Generating...")
|
39 |
for _ in range(50):
|
40 |
result = generate(text)
|
41 |
text=slice(result)
|
42 |
+
st.success(result.replace(text,""))
|
43 |
#with concurrent.futures.ThreadPoolExecutor() as executor:
|
44 |
# executor.submit(type_text, result.replace(text,""))
|
45 |
|