Spaces:
Build error
Build error
not using column layout and disable output text_area
Browse files
app.py
CHANGED
@@ -90,20 +90,13 @@ elif option == 'Reverse model':
|
|
90 |
input = st.text_input('Context', value=context_example) # user inputs context to construct a response (str)
|
91 |
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
# Column layout to display generated responses alongside tags
|
98 |
-
col1, col2 = st.columns((3, 1))
|
99 |
-
|
100 |
if st.button('Submit') or st.session_state.button_sent:
|
101 |
with st.spinner('Generating a response...'):
|
102 |
output = genQuestion(option, input)
|
103 |
print(output)
|
104 |
# st.write(output)
|
105 |
st.session_state.button_sent = True
|
106 |
-
|
107 |
|
108 |
|
109 |
|
|
|
90 |
input = st.text_input('Context', value=context_example) # user inputs context to construct a response (str)
|
91 |
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
if st.button('Submit') or st.session_state.button_sent:
|
94 |
with st.spinner('Generating a response...'):
|
95 |
output = genQuestion(option, input)
|
96 |
print(output)
|
97 |
# st.write(output)
|
98 |
st.session_state.button_sent = True
|
99 |
+
st.text_area(label="Generated Responses:", value=output, disabled=True, height=200)
|
100 |
|
101 |
|
102 |
|