cahya commited on
Commit
80a49ac
1 Parent(s): 8136881

fixed the result

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -102,8 +102,8 @@ if st.button("Run"):
102
  max_len=max_len,
103
  temp=temp,
104
  top_k=top_k,
105
- top_p=top_p)[0]["generated_text"]
106
-
107
  st.write(result.replace("\n", " \n"))
108
  st.text("English translation")
109
  st.write(translate(result, "en", "id").replace("\n", " \n"))
 
102
  max_len=max_len,
103
  temp=temp,
104
  top_k=top_k,
105
+ top_p=top_p)
106
+ result = result[0]["generated_text"]
107
  st.write(result.replace("\n", " \n"))
108
  st.text("English translation")
109
  st.write(translate(result, "en", "id").replace("\n", " \n"))