Doron Adler
commited on
Commit
•
77d43d7
1
Parent(s):
1d7dfdd
Updated log
Browse files
app.py
CHANGED
@@ -94,6 +94,8 @@ if __name__ == "__main__":
|
|
94 |
|
95 |
model.to(device)
|
96 |
|
|
|
|
|
97 |
st.sidebar.subheader("Configurable parameters")
|
98 |
|
99 |
max_len = st.sidebar.slider("Max-Length", 0, 512, 256,help="The maximum length of the sequence to be generated.")
|
@@ -116,7 +118,7 @@ if __name__ == "__main__":
|
|
116 |
top_k=int(top_k),
|
117 |
top_p=float(top_p))
|
118 |
|
119 |
-
print("Done length:" + str(len(result)))
|
120 |
#<div class="rtl" dir="rtl" style="text-align:right;">
|
121 |
st.markdown(f"<p dir=\"rtl\" style=\"text-align:right;\"> {result} </p>", unsafe_allow_html=True)
|
122 |
|
|
|
94 |
|
95 |
model.to(device)
|
96 |
|
97 |
+
print(f"device:{device}, n_gpu:{n_gpu}, random_seed:{random_seed}")
|
98 |
+
|
99 |
st.sidebar.subheader("Configurable parameters")
|
100 |
|
101 |
max_len = st.sidebar.slider("Max-Length", 0, 512, 256,help="The maximum length of the sequence to be generated.")
|
|
|
118 |
top_k=int(top_k),
|
119 |
top_p=float(top_p))
|
120 |
|
121 |
+
print("Done length: " + str(len(result)) + " bytes")
|
122 |
#<div class="rtl" dir="rtl" style="text-align:right;">
|
123 |
st.markdown(f"<p dir=\"rtl\" style=\"text-align:right;\"> {result} </p>", unsafe_allow_html=True)
|
124 |
|