Update pages/Image-scan.py
Browse files50 unmodified lines515253545455565750 unmodified lines
try: # Send POST request to a FastAPI endpoint with temporary image path FASTAPI_URL = f"http://localhost:8000/image/{llm}" FASTAPI_URL = f"http://localhost:7860/image/{llm}" with st.spinner("Interpreting image..."): response = requests.post(FASTAPI_URL, json={"image_path": temp_img_path}) # Append the image and response to the chat historypages/Image-scan.py+1-1