Spaces:
Sleeping
Sleeping
Ubuntu
commited on
Commit
·
0ea48b0
1
Parent(s):
de0b08b
update
Browse files
app.py
CHANGED
@@ -222,11 +222,25 @@ def main():
|
|
222 |
set_preset()
|
223 |
|
224 |
st.title("GPT-JT")
|
225 |
-
|
226 |
-
col1, col2 = st.columns([1,
|
227 |
-
|
228 |
with col1:
|
229 |
model_name = st.selectbox("Model", ["GPT-JT-6B-v1"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
max_new_tokens = st.text_input('Max new tokens', st.session_state.max_new_tokens)
|
231 |
temperature = st.text_input('temperature', st.session_state.temperature)
|
232 |
top_k = st.text_input('top_k', st.session_state.top_k)
|
@@ -237,16 +251,7 @@ def main():
|
|
237 |
# seed = st.text_input('seed', "42")
|
238 |
seed = "42"
|
239 |
|
240 |
-
with
|
241 |
-
|
242 |
-
preset = st.selectbox(
|
243 |
-
label="Examples",
|
244 |
-
options=('Question Answering', 'Sentiment Analysis',
|
245 |
-
"Topic Classification", "Paraphrasing", "Text Summarization",
|
246 |
-
"Word Sense Disambiguation", "Natural Language Inference"),
|
247 |
-
on_change=set_preset,
|
248 |
-
key="preset",
|
249 |
-
)
|
250 |
|
251 |
prompt_area = st.empty()
|
252 |
prompt = prompt_area.text_area(
|
|
|
222 |
set_preset()
|
223 |
|
224 |
st.title("GPT-JT")
|
225 |
+
|
226 |
+
col1, col2 = st.columns([1, 2])
|
227 |
+
|
228 |
with col1:
|
229 |
model_name = st.selectbox("Model", ["GPT-JT-6B-v1"])
|
230 |
+
|
231 |
+
with col2:
|
232 |
+
preset = st.selectbox(
|
233 |
+
label="Examples",
|
234 |
+
options=('Question Answering', 'Sentiment Analysis',
|
235 |
+
"Topic Classification", "Paraphrasing", "Text Summarization",
|
236 |
+
"Word Sense Disambiguation", "Natural Language Inference"),
|
237 |
+
on_change=set_preset,
|
238 |
+
key="preset",
|
239 |
+
)
|
240 |
+
|
241 |
+
col3, col4 = st.columns([1, 5])
|
242 |
+
|
243 |
+
with col3:
|
244 |
max_new_tokens = st.text_input('Max new tokens', st.session_state.max_new_tokens)
|
245 |
temperature = st.text_input('temperature', st.session_state.temperature)
|
246 |
top_k = st.text_input('top_k', st.session_state.top_k)
|
|
|
251 |
# seed = st.text_input('seed', "42")
|
252 |
seed = "42"
|
253 |
|
254 |
+
with col4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
prompt_area = st.empty()
|
257 |
prompt = prompt_area.text_area(
|