Spaces:
Running
Running
Circhastic
commited on
Commit
•
37b261d
1
Parent(s):
44ca278
Version 1 hotfix #33 for merge
Browse files
app.py
CHANGED
@@ -360,9 +360,9 @@ if (st.session_state.uploaded):
|
|
360 |
col[0].subheader(f"Forecasted sales in the next {period} days")
|
361 |
col[0].write(df)
|
362 |
with col[1]:
|
363 |
-
with
|
364 |
-
question =
|
365 |
-
query_button =
|
366 |
if query_button or question:
|
367 |
answer = get_converted_answer(df, question)
|
368 |
if answer is not None:
|
|
|
360 |
col[0].subheader(f"Forecasted sales in the next {period} days")
|
361 |
col[0].write(df)
|
362 |
with col[1]:
|
363 |
+
with st.form("question_form"):
|
364 |
+
question = st.text_input('Ask a Question about the Forecasted Data', placeholder="What is the total sales in the month of December?")
|
365 |
+
query_button = st.form_submit_button(label='Generate Answer')
|
366 |
if query_button or question:
|
367 |
answer = get_converted_answer(df, question)
|
368 |
if answer is not None:
|