Sasidhar commited on
Commit
2b90304
·
1 Parent(s): d257dd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- res = text_generator( prompt, max_length=100, temperature=0.7)
27
- st.write(res)
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
+