Spaces:
Running
Running
Commit ·
9383c1f
1
Parent(s): c11c623
Sync with main branch - updated UI and requirements
Browse files
app.py
CHANGED
|
@@ -9,8 +9,9 @@ from typing import Any
|
|
| 9 |
import gradio as gr
|
| 10 |
|
| 11 |
|
| 12 |
-
USE_LIVE_BACKEND = os.getenv("USE_LIVE_BACKEND", "false").lower() == "true"
|
| 13 |
-
|
|
|
|
| 14 |
UPLAN_API_KEY = os.getenv("UPLAN_API_KEY", "")
|
| 15 |
SAMPLE_PATH = Path(__file__).parent / "sample_outputs" / "demo_result.json"
|
| 16 |
DEMO_RESULT = json.loads(SAMPLE_PATH.read_text(encoding="utf-8")) if SAMPLE_PATH.exists() else {}
|
|
|
|
| 9 |
import gradio as gr
|
| 10 |
|
| 11 |
|
| 12 |
+
# USE_LIVE_BACKEND = os.getenv("USE_LIVE_BACKEND", "false").lower() == "true"
|
| 13 |
+
USE_LIVE_BACKEND = True
|
| 14 |
+
AMD_ENDPOINT = os.getenv("AMD_ENDPOINT", "http://165.245.142.235:8000")
|
| 15 |
UPLAN_API_KEY = os.getenv("UPLAN_API_KEY", "")
|
| 16 |
SAMPLE_PATH = Path(__file__).parent / "sample_outputs" / "demo_result.json"
|
| 17 |
DEMO_RESULT = json.loads(SAMPLE_PATH.read_text(encoding="utf-8")) if SAMPLE_PATH.exists() else {}
|