anamargarida commited on
Commit
9b3ad4c
·
verified ·
1 Parent(s): a12cae6

Rename app_21.py to app_22.py

Browse files
Files changed (1) hide show
  1. app_21.py → app_22.py +3 -3
app_21.py → app_22.py RENAMED
@@ -138,9 +138,9 @@ def extract_arguments(text, tokenizer, model, beam_search=True):
138
  st.write(f"Token {i}: {token}, Word ID: {word_id}")
139
 
140
 
141
- #st.write("Token Positions, IDs, and Corresponding Tokens:")
142
- #for position, (token_id, token) in enumerate(zip(token_ids, tokens)):
143
- #st.write(f"Position: {position}, ID: {token_id}, Token: {token}")
144
 
145
  st.write(f"Start Cause 1: {start_cause1}, End Cause: {end_cause1}")
146
  st.write(f"Start Effect 1: {start_effect1}, End Cause: {end_effect1}")
 
138
  st.write(f"Token {i}: {token}, Word ID: {word_id}")
139
 
140
 
141
+ st.write("Token Positions, IDs, and Corresponding Tokens:")
142
+ for position, (token_id, token) in enumerate(zip(token_ids, tokens)):
143
+ st.write(f"Position: {position}, ID: {token_id}, Token: {token}")
144
 
145
  st.write(f"Start Cause 1: {start_cause1}, End Cause: {end_cause1}")
146
  st.write(f"Start Effect 1: {start_effect1}, End Cause: {end_effect1}")