BigSalmon commited on
Commit
fbf6b2e
·
1 Parent(s): b94e276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -88,9 +88,13 @@ if st.button("Run"):
88
  num_return_sequences = int(num_return_sequences),
89
  top_k=int(top_k),
90
  top_p=float(top_p))
 
91
  text = str(text)
92
- result = result.replace(text, "")
93
- st.write(result)
 
 
 
94
  if "error" in result:
95
  if type(result["error"]) is str:
96
  st.write(f'{result["error"]}. Please try it again in about {result["estimated_time"]:.0f} seconds')
 
88
  num_return_sequences = int(num_return_sequences),
89
  top_k=int(top_k),
90
  top_p=float(top_p))
91
+ result2 = []
92
  text = str(text)
93
+ result = result.replace(text, "")
94
+ for i in result:
95
+ i = i.replace(text, "")
96
+ result2.append(i)
97
+ st.write(result2)
98
  if "error" in result:
99
  if type(result["error"]) is str:
100
  st.write(f'{result["error"]}. Please try it again in about {result["estimated_time"]:.0f} seconds')