SaileshSivan commited on
Commit
2cb3fe5
·
1 Parent(s): 57202e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -18
app.py CHANGED
@@ -63,24 +63,29 @@ if 'flowmessages' not in st.session_state:
63
  ]
64
 
65
  # Streamlit UI
66
- with st.form(key='my_form'):
67
- input_question = st.text_input("Type here.", key="input")
68
-
69
- # Apply custom HTML and CSS for styling
70
- st.markdown(
71
- """
72
- <style>
73
- .stTextInput {
74
- border-radius: 10px;
75
- padding: 10px;
76
- /* Add any additional styling here */
77
- }
78
- </style>
79
- """,
80
- unsafe_allow_html=True
81
- )
82
-
83
- submit = st.form_submit_button("Submit", on_click=get_chatmodel_response, args=(input_question,))
 
 
 
 
 
84
 
85
 
86
  # If the "Ask" button is clicked
 
63
  ]
64
 
65
  # Streamlit UI
66
+ input_question = st.text_input("Type here.", key="input")
67
+
68
+ # Apply custom HTML and CSS for styling
69
+ st.markdown(
70
+ """
71
+ <style>
72
+ .stTextInput {
73
+ border-radius: 10px;
74
+ padding: 12px;
75
+ margin-top: 10px;
76
+ margin-bottom: 20px;
77
+ box-shadow: 2px 2px 5px #888888;
78
+ border: 1px solid #dddddd;
79
+ font-size: 16px;
80
+ width: 300px;
81
+ /* Add any additional styling here */
82
+ }
83
+ </style>
84
+ """,
85
+ unsafe_allow_html=True
86
+ )
87
+
88
+ submit = st.button("Submit")
89
 
90
 
91
  # If the "Ask" button is clicked