Spaces:
Runtime error
Runtime error
Commit
·
66d523b
1
Parent(s):
913a435
model select
Browse files
app.py
CHANGED
@@ -15,13 +15,15 @@ st.set_page_config(
|
|
15 |
|
16 |
st.header("Do It!!!! Ask the Question.....")
|
17 |
|
18 |
-
|
19 |
|
|
|
|
|
20 |
|
21 |
submit=st.button("Submit")
|
22 |
|
23 |
if submit:
|
24 |
with st.spinner("In progress..."):
|
25 |
-
response=get_answer(question)
|
26 |
st.subheader("Response")
|
27 |
st.write(f"{response}")
|
|
|
15 |
|
16 |
st.header("Do It!!!! Ask the Question.....")
|
17 |
|
18 |
+
col1,col2=st.columns([5,2])
|
19 |
|
20 |
+
question=col1.text_input("Question:")
|
21 |
+
model_name=st.selectbox("Model Name",options=["google/flan-t5-large","meta-llama/Llama-2-7b-chat-hf"])
|
22 |
|
23 |
submit=st.button("Submit")
|
24 |
|
25 |
if submit:
|
26 |
with st.spinner("In progress..."):
|
27 |
+
response=get_answer(question,model_name)
|
28 |
st.subheader("Response")
|
29 |
st.write(f"{response}")
|