Update app.py
Browse files88 unmodified lines89909188 unmodified linesexcept Exception as e:return JSONResponse({"error": str(e)})88 unmodified lines899091929394959697989910010110210310410510610710810911088 unmodified linesexcept Exception as e:return JSONResponse({"error": str(e)})import gradio as grimport uvicornimport threadingdef run_api():uvicorn.run(app, host="0.0.0.0", port=8000)threading.Thread(target=run_api).start()gr.Markdown("""# 🌾 Crop Disease Classification API### Endpoint:POST `/predict`Use Postman / frontend to send image.""").launch(server_name="0.0.0.0", server_port=7860)
app.py+19