Patrick Rathje
commited on
Commit
·
de472de
1
Parent(s):
172cc5e
remove examples
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from gradio_motioncanvasplayer import MotionCanvasPlayer
|
|
| 12 |
example_project_path = "https://prathje-gradio-motioncanvasplayer.hf.space/gradio_api/file=/home/user/app/public/project-3.17.2.js"
|
| 13 |
|
| 14 |
loading_project_path = ""
|
| 15 |
-
failed_project_path = "
|
| 16 |
|
| 17 |
BUILD_TIMEOUT = 60
|
| 18 |
|
|
@@ -144,12 +144,6 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
|
| 144 |
for ex in EXAMPLES:
|
| 145 |
btn = gr.Button("Load Example: " + ex["name"], variant="secondary")
|
| 146 |
btn.click(partial(load_example, ex), outputs=[player, code, logs], api_name=False)
|
| 147 |
-
|
| 148 |
-
with gr.Accordion("Show Example Scenes"):
|
| 149 |
-
example_md_content = open(os.path.join(os.path.dirname(__file__), "public", "examples.md")).read()
|
| 150 |
-
example_md = gr.Markdown(example_md_content, render=True)
|
| 151 |
-
load_example_md_btn = gr.Button("Load Example", variant="secondary", render=False)
|
| 152 |
-
load_example_md_btn.click(lambda: example_md_content, outputs=[example_md], api_name="examples")
|
| 153 |
|
| 154 |
submit.click(build_project, inputs=[code], outputs=[player, logs], api_name="build")
|
| 155 |
|
|
|
|
| 12 |
example_project_path = "https://prathje-gradio-motioncanvasplayer.hf.space/gradio_api/file=/home/user/app/public/project-3.17.2.js"
|
| 13 |
|
| 14 |
loading_project_path = ""
|
| 15 |
+
failed_project_path = "build_failed"
|
| 16 |
|
| 17 |
BUILD_TIMEOUT = 60
|
| 18 |
|
|
|
|
| 144 |
for ex in EXAMPLES:
|
| 145 |
btn = gr.Button("Load Example: " + ex["name"], variant="secondary")
|
| 146 |
btn.click(partial(load_example, ex), outputs=[player, code, logs], api_name=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
submit.click(build_project, inputs=[code], outputs=[player, logs], api_name="build")
|
| 149 |
|