Spaces:
Sleeping
Sleeping
Download app.py from nekoniii3/obj_viewer: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/nekoniii3/obj_viewer/resolve/main/app.py
- Command line
-
hf download hf://spaces/nekoniii3/obj_viewer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/nekoniii3/obj_viewer/resolve/main/app.py
592 Bytes
| import gradio as gr | |
| def greet(file): return file | |
| with gr.Blocks() as demo: | |
| title = "<h2>OBJファイルビューワー</h2>" | |
| message = "<h3>左にOBJファイルをアップすると自動的に表示されます。<br>" | |
| message += "他のファイルを開く場合は一度×ボタンで消去して下さい。</h3>" | |
| gr.Markdown(title + "<h3>" + message + "</h3>") | |
| with gr.Row(): | |
| inputs = gr.File(label="OBJファイル") | |
| outputs = gr.Model3D(label="3DModel",interactive=False) | |
| inputs.upload(fn=greet, inputs=inputs, outputs=outputs) | |
| demo.launch() |