Spaces:
Running
Running
Commit
·
650f9cf
1
Parent(s):
8cfb467
Update app.py
Browse files
app.py
CHANGED
@@ -138,10 +138,10 @@ with st.sidebar:
|
|
138 |
|
139 |
|
140 |
with st.expander("🎛 Model Configs", False):
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
|
146 |
|
147 |
clicked = st.button("Submit", key='prompt')
|
@@ -149,7 +149,7 @@ with st.sidebar:
|
|
149 |
with st.spinner("Please Wait..."):
|
150 |
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
151 |
|
152 |
-
res = compute(prompt,
|
153 |
st.code(res, language="python")
|
154 |
|
155 |
tab1, tab2 = st.tabs(["Design GitHub Issue Template", "Manual Prompt"])
|
|
|
138 |
|
139 |
|
140 |
with st.expander("🎛 Model Configs", False):
|
141 |
+
max_length_in = st.slider("max_length", 30, 512, 300)
|
142 |
+
min_length_in = st.slider("min_length", 0, 300, 30)
|
143 |
+
top_p_in = st.slider("top_p", 0.0, 1.0, 0.92)
|
144 |
+
top_k_in = st.slider("top_k", 0, 100, 0)
|
145 |
|
146 |
|
147 |
clicked = st.button("Submit", key='prompt')
|
|
|
149 |
with st.spinner("Please Wait..."):
|
150 |
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
151 |
|
152 |
+
res = compute(prompt, top_p_in, top_k_in, do_sample=True, max_length_in, min_length_in)
|
153 |
st.code(res, language="python")
|
154 |
|
155 |
tab1, tab2 = st.tabs(["Design GitHub Issue Template", "Manual Prompt"])
|