French-Coach / app_custom.py

Commit History

Show React app in Gradio embed via full-screen iframe
7e29701
Running
verified

Asma-F commited on

Remove show_api β€” not a valid Blocks.launch() arg in this Gradio 6 build
a65eb0e
verified

Asma-F commited on

Fix: call _orig_create_app(blocks) without cls β€” it is a plain function
b04dc32
verified

Asma-F commited on

Fix create_app cls arg + move theme to launch() for Gradio 6
b55fa72
verified

Asma-F commited on

Fix: App.create_app is plain function in Gradio 6, no __func__
487492b
verified

Asma-F commited on

Monkey-patch Gradio App.create_app to inject React routes β€” one server, no port conflict
df68e59
verified

Asma-F commited on

Remove gr.mount_gradio_app and demo β€” eliminates Gradio's competing server on port 7860
32e33b0
verified

Asma-F commited on

fix(zerogpu): remove spaces from requirements.txt β€” HF pre-installs its own
3e308d0
verified

Asma-F commited on

fix(zerogpu): move @spaces.GPU into app_file so HF static scan finds it
fd11a1b
verified

Asma-F commited on

fix(zerogpu): use canonical @spaces.GPU at module top level
e29c47f
verified

Asma-F commited on

Fix: own FastAPI app (gr.mount_gradio_app) + uvicorn.run β€” full routing control
95dd3d0
verified

Asma-F commited on

Fix routing: mount /api sub-app at router position 0, before Gradio catch-all
b6eb1b2
verified

Asma-F commited on

Fix: move demo.launch() + routes to module level (not __main__ guard) β€” HF SDK imports the module
96c9f25
verified

Asma-F commited on

Fix: import llm before gradio so @spaces.GPU registers before ZeroGPU startup check
3dab631
verified

Asma-F commited on

Fix: import spaces before gradio/torch (CUDA init order for ZeroGPU)
3d2d14b
verified

Asma-F commited on

Deploy: French Coach app (MiniCPM4.1-8B ZeroGPU + React frontend)
4fd1234
verified

Asma-F commited on