Spaces:
Runtime error
Runtime error
Timothyxxx
commited on
Commit
·
cf22e71
1
Parent(s):
bb2c064
Debug
Browse files
app.py
CHANGED
@@ -181,20 +181,12 @@ elif selected_language == 'Python':
|
|
181 |
else:
|
182 |
raise ValueError(f'{selected_language} language is not supported.')
|
183 |
|
184 |
-
|
185 |
-
question
|
186 |
-
|
187 |
-
|
188 |
-
)
|
189 |
-
st.session_state.question = question
|
190 |
-
else:
|
191 |
-
question = st.text_input(
|
192 |
-
"Ask a question about the table:",
|
193 |
-
value=st.session_state.question
|
194 |
-
)
|
195 |
|
196 |
-
|
197 |
-
if not button:
|
198 |
st.stop()
|
199 |
|
200 |
# Generate Binder Program
|
|
|
181 |
else:
|
182 |
raise ValueError(f'{selected_language} language is not supported.')
|
183 |
|
184 |
+
question = st.text_input(
|
185 |
+
"Ask a question about the table:(Please press enter at last!!)",
|
186 |
+
placeholder=EXAMPLE_TABLES[selected_table_title][1],
|
187 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
|
189 |
+
if not question:
|
|
|
190 |
st.stop()
|
191 |
|
192 |
# Generate Binder Program
|