Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,13 +26,15 @@ last_hidden_states = outputs.last_hidden_state
|
|
26 |
|
27 |
output = last_hidden_states #['last_hidden_states']
|
28 |
|
|
|
|
|
29 |
# output = BaseModelOutput(last_hidden_states['last_hidden_states'])
|
30 |
|
31 |
# logits = last_hidden_states.logits
|
32 |
|
33 |
# output = last_hidden_states[0][0]
|
34 |
|
35 |
-
decoded = tokenizer.decode(output) # [0][0]
|
36 |
# print(decoded)
|
37 |
|
38 |
# output = Seq2SeqModelOutput(output)
|
@@ -42,7 +44,7 @@ with st.container():
|
|
42 |
st.write('\n\n')
|
43 |
st.write('LLM-LANAChat\n\n')
|
44 |
st.write(output)
|
45 |
-
st.write(
|
46 |
|
47 |
print('\nsaida gerada.')
|
48 |
print('\n\n')
|
|
|
26 |
|
27 |
output = last_hidden_states #['last_hidden_states']
|
28 |
|
29 |
+
# decoded = tokenizer.decode(output)
|
30 |
+
|
31 |
# output = BaseModelOutput(last_hidden_states['last_hidden_states'])
|
32 |
|
33 |
# logits = last_hidden_states.logits
|
34 |
|
35 |
# output = last_hidden_states[0][0]
|
36 |
|
37 |
+
# decoded = tokenizer.decode(output) # [0][0]
|
38 |
# print(decoded)
|
39 |
|
40 |
# output = Seq2SeqModelOutput(output)
|
|
|
44 |
st.write('\n\n')
|
45 |
st.write('LLM-LANAChat\n\n')
|
46 |
st.write(output)
|
47 |
+
st.write(type(output))
|
48 |
|
49 |
print('\nsaida gerada.')
|
50 |
print('\n\n')
|