Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ action = st.sidebar.selectbox("Pick an Action", ["Generate an Article","Create a
|
|
23 |
|
24 |
if action == "Generate an Article":
|
25 |
prompt = st.text_input("Enter a prompt")
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
23 |
|
24 |
if action == "Generate an Article":
|
25 |
prompt = st.text_input("Enter a prompt")
|
26 |
+
if prompt:
|
27 |
+
res = text_generator( prompt, max_length=100, temperature=0.7)
|
28 |
+
st.write(res)
|
29 |
+
|