Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ with col1:
|
|
| 88 |
else:
|
| 89 |
query_text = st.text_area(
|
| 90 |
"Input Query",
|
| 91 |
-
value="How has
|
| 92 |
)
|
| 93 |
|
| 94 |
|
|
@@ -150,7 +150,7 @@ else:
|
|
| 150 |
# Hardcoding the defaults for a question without metadata
|
| 151 |
if (
|
| 152 |
query_text
|
| 153 |
-
== "How has
|
| 154 |
):
|
| 155 |
start_year = st.selectbox("Start Year", years_choice, index=2)
|
| 156 |
start_quarter = st.selectbox(
|
|
@@ -377,7 +377,7 @@ if decoder_model == "GPT-3.5 Turbo":
|
|
| 377 |
with col2:
|
| 378 |
with st.form("my_form"):
|
| 379 |
edited_prompt = st.text_area(
|
| 380 |
-
label="Model Prompt", value=prompt, height=
|
| 381 |
)
|
| 382 |
|
| 383 |
openai_key = st.text_input(
|
|
@@ -414,7 +414,7 @@ elif decoder_model == "T5":
|
|
| 414 |
with col2:
|
| 415 |
with st.form("my_form"):
|
| 416 |
edited_prompt = st.text_area(
|
| 417 |
-
label="Model Prompt", value=prompt, height=
|
| 418 |
)
|
| 419 |
context_list = get_context_list_prompt(edited_prompt)
|
| 420 |
submitted = st.form_submit_button("Submit")
|
|
@@ -453,7 +453,7 @@ elif decoder_model == "FLAN-T5":
|
|
| 453 |
prompt = ""
|
| 454 |
with st.form("my_form"):
|
| 455 |
edited_prompt = st.text_area(
|
| 456 |
-
label="Model Prompt", value=prompt, height=
|
| 457 |
)
|
| 458 |
submitted = st.form_submit_button("Submit")
|
| 459 |
if submitted:
|
|
@@ -504,7 +504,7 @@ if decoder_model == "GPT-J":
|
|
| 504 |
with col2:
|
| 505 |
with st.form("my_form"):
|
| 506 |
edited_prompt = st.text_area(
|
| 507 |
-
label="Model Prompt", value=prompt, height=
|
| 508 |
)
|
| 509 |
st.write(
|
| 510 |
"The app currently just shows the prompt. The app does not load the model due to memory limitations."
|
|
|
|
| 88 |
else:
|
| 89 |
query_text = st.text_area(
|
| 90 |
"Input Query",
|
| 91 |
+
value="How has revenue from Wearables performed over the past 2 years?",
|
| 92 |
)
|
| 93 |
|
| 94 |
|
|
|
|
| 150 |
# Hardcoding the defaults for a question without metadata
|
| 151 |
if (
|
| 152 |
query_text
|
| 153 |
+
== "How has revenue from Wearables performed over the past 2 years?"
|
| 154 |
):
|
| 155 |
start_year = st.selectbox("Start Year", years_choice, index=2)
|
| 156 |
start_quarter = st.selectbox(
|
|
|
|
| 377 |
with col2:
|
| 378 |
with st.form("my_form"):
|
| 379 |
edited_prompt = st.text_area(
|
| 380 |
+
label="Model Prompt", value=prompt, height=400
|
| 381 |
)
|
| 382 |
|
| 383 |
openai_key = st.text_input(
|
|
|
|
| 414 |
with col2:
|
| 415 |
with st.form("my_form"):
|
| 416 |
edited_prompt = st.text_area(
|
| 417 |
+
label="Model Prompt", value=prompt, height=400
|
| 418 |
)
|
| 419 |
context_list = get_context_list_prompt(edited_prompt)
|
| 420 |
submitted = st.form_submit_button("Submit")
|
|
|
|
| 453 |
prompt = ""
|
| 454 |
with st.form("my_form"):
|
| 455 |
edited_prompt = st.text_area(
|
| 456 |
+
label="Model Prompt", value=prompt, height=400
|
| 457 |
)
|
| 458 |
submitted = st.form_submit_button("Submit")
|
| 459 |
if submitted:
|
|
|
|
| 504 |
with col2:
|
| 505 |
with st.form("my_form"):
|
| 506 |
edited_prompt = st.text_area(
|
| 507 |
+
label="Model Prompt", value=prompt, height=400
|
| 508 |
)
|
| 509 |
st.write(
|
| 510 |
"The app currently just shows the prompt. The app does not load the model due to memory limitations."
|