Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,8 +86,10 @@ def BestProbs(prompt):
|
|
86 |
for i in best_words[0:10]:
|
87 |
print("_______")
|
88 |
st.write(f"${i} $\n")
|
|
|
89 |
m = (prompt + f"{i}")
|
90 |
BestProbs2(m)
|
|
|
91 |
|
92 |
def BestProbs2(prompt):
|
93 |
prompt = prompt.strip()
|
@@ -123,4 +125,6 @@ with st.form(key='my_form'):
|
|
123 |
words = []
|
124 |
st.write(best_words)
|
125 |
if submit_button2:
|
126 |
-
|
|
|
|
|
|
86 |
for i in best_words[0:10]:
|
87 |
print("_______")
|
88 |
st.write(f"${i} $\n")
|
89 |
+
f = (f"${i} $\n")
|
90 |
m = (prompt + f"{i}")
|
91 |
BestProbs2(m)
|
92 |
+
return f
|
93 |
|
94 |
def BestProbs2(prompt):
|
95 |
prompt = prompt.strip()
|
|
|
125 |
words = []
|
126 |
st.write(best_words)
|
127 |
if submit_button2:
|
128 |
+
st.write("___")
|
129 |
+
ok = BestProbs(prompt)
|
130 |
+
st.write(ok)
|