Max KHANOV
commited on
Commit
•
a5de40a
1
Parent(s):
7154e66
More examples
Browse files
app.py
CHANGED
@@ -4,10 +4,14 @@ st.header('Args')
|
|
4 |
st.text('(Llama-7b sft)')
|
5 |
col1, col2 = st.columns([3,1])
|
6 |
|
7 |
-
example_num = st.selectbox("Select an example", ("None", "Example 1", "Example 2", "Example 3"), index=3)
|
8 |
|
9 |
if example_num != "None":
|
10 |
-
examples = {"Example 1": "What should you wear to a funeral?",
|
|
|
|
|
|
|
|
|
11 |
example_text = examples.get(example_num)
|
12 |
st.session_state.text = example_text
|
13 |
|
|
|
4 |
st.text('(Llama-7b sft)')
|
5 |
col1, col2 = st.columns([3,1])
|
6 |
|
7 |
+
example_num = st.selectbox("Select an example", ("None", "Example 1", "Example 2", "Example 3", "Example 4", "Example 5"), index=3)
|
8 |
|
9 |
if example_num != "None":
|
10 |
+
examples = {"Example 1": "What should you wear to a funeral?",
|
11 |
+
"Example 2": "I need a good winter glove and I'm wondering what materials I should be looking for. I want something lightly insulated but weather resistant.",
|
12 |
+
"Example 3": "My son is struggling to learn how to do addition. How can I teach him?",
|
13 |
+
"Example 4": "How do you get a child to do homework?",
|
14 |
+
"Example 5": "How do I feel comfortable in my own skin?"}
|
15 |
example_text = examples.get(example_num)
|
16 |
st.session_state.text = example_text
|
17 |
|