Update app.py
Browse files
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(
|
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
|