Spaces:
Sleeping
Sleeping
Spacing fix
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def main():
|
|
54 |
specified_k = st.number_input("Value for k:", value = 5, step = 1)
|
55 |
|
56 |
if generation_method == "nucleus":
|
57 |
-
specified_nucleus = st.number_input("
|
58 |
|
59 |
if generation_method == "temperature":
|
60 |
specified_temperature = st.number_input("Value for temperature:", value = 0.9, step = 0.05, min_value = 0.0, max_value = 1.0)
|
@@ -93,7 +93,7 @@ def main():
|
|
93 |
for word in user_input.split(' '):
|
94 |
streamed_input += word
|
95 |
with placeholder.container():
|
96 |
-
st.markdown(f"**{streamed_input}**")
|
97 |
streamed_input += " "
|
98 |
time.sleep(0.1)
|
99 |
|
@@ -108,7 +108,7 @@ def main():
|
|
108 |
for word in result.split(' '):
|
109 |
streamed_result += word + ' '
|
110 |
with placeholder.container():
|
111 |
-
st.
|
112 |
time.sleep(0.1)
|
113 |
if st.button('Clear Output'):
|
114 |
placeholder = st.empty()
|
|
|
54 |
specified_k = st.number_input("Value for k:", value = 5, step = 1)
|
55 |
|
56 |
if generation_method == "nucleus":
|
57 |
+
specified_nucleus = st.number_input("Nucleus Cutoff:", value = 0.5, step = 0.05, min_value = 0.0, max_value = 1.0)
|
58 |
|
59 |
if generation_method == "temperature":
|
60 |
specified_temperature = st.number_input("Value for temperature:", value = 0.9, step = 0.05, min_value = 0.0, max_value = 1.0)
|
|
|
93 |
for word in user_input.split(' '):
|
94 |
streamed_input += word
|
95 |
with placeholder.container():
|
96 |
+
st.markdown(f"**{streamed_input}** \n\n\n\n")
|
97 |
streamed_input += " "
|
98 |
time.sleep(0.1)
|
99 |
|
|
|
108 |
for word in result.split(' '):
|
109 |
streamed_result += word + ' '
|
110 |
with placeholder.container():
|
111 |
+
st.markdown(f"{streamed_result} \n\n\n\n")
|
112 |
time.sleep(0.1)
|
113 |
if st.button('Clear Output'):
|
114 |
placeholder = st.empty()
|