Spaces:
Runtime error
Runtime error
fixed the result
Browse files
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)
|
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"))
|