Spaces:
Running
Running
Aaron Xavier (FLW) commited on
Commit ·
55fc2e1
1
Parent(s): 4e654b1
Fixes
Browse files
README.md
CHANGED
|
@@ -5,7 +5,8 @@ colorFrom: blue
|
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
sdk_version: "1.0.0"
|
| 8 |
-
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
sdk_version: "1.0.0"
|
| 8 |
+
app_build_command: npm run build
|
| 9 |
+
app_file: build/index.html
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
app.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
import os
|
| 3 |
-
|
| 4 |
-
REACT_BUILD_PATH = os.path.join(os.path.dirname(__file__), "public", "index.html")
|
| 5 |
-
|
| 6 |
-
def show_org_chart():
|
| 7 |
-
with open(REACT_BUILD_PATH, "r", encoding="utf-8") as f:
|
| 8 |
-
return f.read()
|
| 9 |
-
|
| 10 |
-
demo = gr.Interface(
|
| 11 |
-
fn=show_org_chart,
|
| 12 |
-
inputs=[],
|
| 13 |
-
outputs=gr.HTML(),
|
| 14 |
-
title="Organigram",
|
| 15 |
-
description="Interactive organizational chart web app."
|
| 16 |
-
)
|
| 17 |
-
|
| 18 |
-
if __name__ == "__main__":
|
| 19 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|