Spaces:
Runtime error
Runtime error
Download app.py from Corin1998/IR_ESG_RAG_Bot: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Corin1998/IR_ESG_RAG_Bot/resolve/main/app.py
- Command line
-
hf download hf://spaces/Corin1998/IR_ESG_RAG_Bot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Corin1998/IR_ESG_RAG_Bot/resolve/main/app.py
501 Bytes
| # app.py — MINIMAL GUARANTEED INIT for Hugging Face Spaces (SDK: gradio) | |
| import gradio as gr | |
| def ping(name: str) -> str: | |
| return f"Startup OK ✅ Hello, {name or 'world'}!" | |
| demo = gr.Interface(fn=ping, inputs="text", outputs="text", title="Gradio Space is running") | |
| app = demo # ← 念のため app と demo の両方を公開 | |
| # 注意: | |
| # - __main__ で launch() は不要(Spaces が自動で起動します) | |
| # - 例外処理は最小化(まずは初期化を通すことが目的) | |