Harshil24 commited on
Commit
3002e99
·
1 Parent(s): 5e8b514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,10 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ def gene():
4
+ print("hello")
5
+
6
+ if st.button("Generate Text"):
7
+ # When the button is clicked, call the generate_text function
8
+ generated_text = gene()
9
+ st.write("Generated Text:")
10
+ st.write(generated_text)