Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ import requests
|
|
| 5 |
|
| 6 |
# Set up Hugging Face API details
|
| 7 |
token=os.getenv("HF_TOKEN", None)
|
|
|
|
|
|
|
|
|
|
| 8 |
headers = {"Authorization": f"Bearer {token}"}
|
| 9 |
API_URL = "https://api-inference.huggingface.co/models/facebook/bart-large-cnn"
|
| 10 |
|
|
@@ -27,3 +30,4 @@ if st.button("Send"):
|
|
| 27 |
st.text_area("Bot:", value=data[0]["summary_text"], height=150)
|
| 28 |
else:
|
| 29 |
st.error("No response from the model")
|
|
|
|
|
|
| 5 |
|
| 6 |
# Set up Hugging Face API details
|
| 7 |
token=os.getenv("HF_TOKEN", None)
|
| 8 |
+
|
| 9 |
+
st.write(token)
|
| 10 |
+
'''
|
| 11 |
headers = {"Authorization": f"Bearer {token}"}
|
| 12 |
API_URL = "https://api-inference.huggingface.co/models/facebook/bart-large-cnn"
|
| 13 |
|
|
|
|
| 30 |
st.text_area("Bot:", value=data[0]["summary_text"], height=150)
|
| 31 |
else:
|
| 32 |
st.error("No response from the model")
|
| 33 |
+
'''
|