Update pages/Image-scan.py
Browse files50 unmodified lines5152535455565750 unmodified linestry:# Send POST request to a FastAPI endpoint with temporary image pathFASTAPI_URL = f"http://localhost:8000/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 history50 unmodified lines5152535455565750 unmodified linestry:# Send POST request to a FastAPI endpoint with temporary image pathFASTAPI_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 history
pages/Image-scan.py+1-1