drmurataltun commited on
Commit
2367c9c
·
verified ·
1 Parent(s): 5528efa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ if st.button("Make Prediction"):
25
  with st.spinner("Making prediction..."):
26
  try:
27
  # FastAPI endpoint'ine Hugging Face Spaces üzerinden çağrı yapın
28
- response = requests.post("https://huggingface.co/spaces/drmurataltun/fastai/predict", json={})
 
29
  response.raise_for_status() # HTTP hata kodları için kontrol
30
 
31
  # Yanıtın içerik türünü kontrol edin
 
25
  with st.spinner("Making prediction..."):
26
  try:
27
  # FastAPI endpoint'ine Hugging Face Spaces üzerinden çağrı yapın
28
+ url = "https://huggingface.co/spaces/drmurataltun/fastai/predict" # URL'nizin doğru olduğundan emin olun
29
+ response = requests.post(url, json={})
30
  response.raise_for_status() # HTTP hata kodları için kontrol
31
 
32
  # Yanıtın içerik türünü kontrol edin