Spaces:
Sleeping
Sleeping
arieridwans
commited on
Commit
•
ad3979e
1
Parent(s):
51a8c67
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,6 @@ def run_inference():
|
|
23 |
truncation=True)
|
24 |
result = inference_model.generate(**input, repetition_penalty=1.2, max_length=1024)
|
25 |
output = inference_tokenizer.batch_decode(result, skip_special_tokens=True)[0]
|
26 |
-
st.text(
|
27 |
-
st.write(output)
|
28 |
|
29 |
st.button('Generate Result', on_click=run_inference)
|
|
|
23 |
truncation=True)
|
24 |
result = inference_model.generate(**input, repetition_penalty=1.2, max_length=1024)
|
25 |
output = inference_tokenizer.batch_decode(result, skip_special_tokens=True)[0]
|
26 |
+
st.text(output)
|
|
|
27 |
|
28 |
st.button('Generate Result', on_click=run_inference)
|