Spaces:
Running
Running
Commit
·
8e14bf1
1
Parent(s):
2a3a424
Update app.py
Browse files
app.py
CHANGED
@@ -160,10 +160,11 @@ with tab1:
|
|
160 |
# if filled_prompt!=template_prompt:
|
161 |
# res = compute(prompt, top_p=0.92, top_k=0, do_sample=True, max_length=300, min_length=0)
|
162 |
# st.code(res, language="python")
|
|
|
|
|
163 |
clicked = st.button("Submit", key='custom-prompt')
|
164 |
|
165 |
with st.spinner("Please Wait..."):
|
166 |
-
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
167 |
|
168 |
res = compute(prompt, top_p = top_p_in, top_k=top_k_in, do_sample=True, max_length=max_length_in, min_length=min_length_in)
|
169 |
st.code(res, language="python")
|
|
|
160 |
# if filled_prompt!=template_prompt:
|
161 |
# res = compute(prompt, top_p=0.92, top_k=0, do_sample=True, max_length=300, min_length=0)
|
162 |
# st.code(res, language="python")
|
163 |
+
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
164 |
+
|
165 |
clicked = st.button("Submit", key='custom-prompt')
|
166 |
|
167 |
with st.spinner("Please Wait..."):
|
|
|
168 |
|
169 |
res = compute(prompt, top_p = top_p_in, top_k=top_k_in, do_sample=True, max_length=max_length_in, min_length=min_length_in)
|
170 |
st.code(res, language="python")
|