Spaces:
Runtime error
Runtime error
yash161101
commited on
Commit
•
cab23ed
1
Parent(s):
3f9defd
Update app.py
Browse files
app.py
CHANGED
@@ -38,5 +38,7 @@ with st.form(key='my_form'):
|
|
38 |
text.append(best_indices[0].item())
|
39 |
best_probabilities = probabilities[best_indices].tolist()
|
40 |
words = []
|
41 |
-
|
|
|
|
|
42 |
st.write(final_string)
|
|
|
38 |
text.append(best_indices[0].item())
|
39 |
best_probabilities = probabilities[best_indices].tolist()
|
40 |
words = []
|
41 |
+
|
42 |
+
best_words = ' '.join(best_words[0:5])
|
43 |
+
final_string = prompt + best_words
|
44 |
st.write(final_string)
|