Spaces:
Sleeping
Sleeping
nafisehNik
commited on
Commit
•
330e431
1
Parent(s):
43e1efc
Update app.py
Browse files
app.py
CHANGED
@@ -245,15 +245,11 @@ with st.sidebar:
|
|
245 |
|
246 |
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
247 |
|
248 |
-
|
249 |
-
label = "Enter your prompt here.",
|
250 |
-
value = prompt,
|
251 |
-
placeholder=None,
|
252 |
-
height=400)
|
253 |
|
254 |
clicked = st.button("Submit")
|
255 |
|
256 |
if clicked:
|
257 |
with st.spinner("Please Wait..."):
|
258 |
-
res = compute(
|
259 |
st.code(res, language="python")
|
|
|
245 |
|
246 |
prompt = create_instruction(in_name, in_about, in_title, in_labels, in_assignees, in_headline_type, in_headlines, in_summary)
|
247 |
|
248 |
+
st.code(prompt, language="python")
|
|
|
|
|
|
|
|
|
249 |
|
250 |
clicked = st.button("Submit")
|
251 |
|
252 |
if clicked:
|
253 |
with st.spinner("Please Wait..."):
|
254 |
+
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)
|
255 |
st.code(res, language="python")
|