manesh1 commited on
Commit
35a9f3c
·
verified ·
1 Parent(s): afbc73e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -50,8 +50,8 @@ def main():
50
  else:
51
  with st.spinner("⏳ Generating summary using your model..."):
52
  try:
53
- # Use Inference API directly without secrets
54
- API_URL = "https://api-inference.huggingface.co/models/manesh1/t5-small-lora-summarization"
55
 
56
  response = requests.post(
57
  API_URL,
 
50
  else:
51
  with st.spinner("⏳ Generating summary using your model..."):
52
  try:
53
+ # NEW API ENDPOINT
54
+ API_URL = "https://router.huggingface.co/hf-inference/models/manesh1/t5-small-lora-summarization"
55
 
56
  response = requests.post(
57
  API_URL,