Chris4K commited on
Commit
bd2daac
·
verified ·
1 Parent(s): bb77c30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from transformers import BertModel, BertTokenizer
3
  from transformers import HfAgent, load_tool
4
 
5
  # Load tools
@@ -41,7 +41,7 @@ def handle_submission():
41
  # outputs = agent(inputs['input_ids'], attention_mask=inputs['attention_mask'])
42
 
43
  # Display the agent's response
44
- response = agent.run(inputs['input_ids'])
45
  st.text(f"{response:.4f}")
46
 
47
  # Add the callback function to the Streamlit app
 
1
  import streamlit as st
2
+ #from transformers import BertModel, BertTokenizer
3
  from transformers import HfAgent, load_tool
4
 
5
  # Load tools
 
41
  # outputs = agent(inputs['input_ids'], attention_mask=inputs['attention_mask'])
42
 
43
  # Display the agent's response
44
+ response = agent.run(message)
45
  st.text(f"{response:.4f}")
46
 
47
  # Add the callback function to the Streamlit app