Sasidhar commited on
Commit
e7f5cf5
·
1 Parent(s): 07c1b54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,5 +22,7 @@ text_generator = load_text_gen_model()
22
  action = st.sidebar.selectbox("Pick an Action", ["Generate an Article","Create an Image"])
23
 
24
  if action == "Generate an Article":
25
- st.text_input("Enter a prompt")
 
 
26
 
 
22
  action = st.sidebar.selectbox("Pick an Action", ["Generate an Article","Create an Image"])
23
 
24
  if action == "Generate an Article":
25
+ prompt = st.text_input("Enter a prompt")
26
+ res = generator( prompt, max_length=100, temperature=0.7)
27
+ st.write(res)
28