Spaces:
Sleeping
Sleeping
Commit Β·
03e72c7
1
Parent(s): c717d93
Refactor file structure
Browse files- README.md +1 -1
- backend/src/__pycache__/backend.cpython-312.pyc +0 -0
- backend.py β backend/src/backend.py +0 -0
- frontend.py β frontends/gradio/main.py +7 -0
- dataset.py β old_code/dataset.py +0 -0
- gp_visualizer.py β old_code/gp_visualizer.py +0 -0
- gp_visualizer_old.py β old_code/gp_visualizer_old.py +0 -0
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: yellow
|
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.3.0
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.3.0
|
| 8 |
+
app_file: frontends/gradio/main.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
backend/src/__pycache__/backend.cpython-312.pyc
ADDED
|
Binary file (7.21 kB). View file
|
|
|
backend.py β backend/src/backend.py
RENAMED
|
File without changes
|
frontend.py β frontends/gradio/main.py
RENAMED
|
@@ -4,6 +4,13 @@ import gradio as gr
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from sympy import sympify
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
from backend import (
|
| 8 |
Dataset,
|
| 9 |
DataGenerationOptions,
|
|
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from sympy import sympify
|
| 6 |
|
| 7 |
+
import sys
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
root_dir = Path(__file__).resolve().parent.parent.parent
|
| 10 |
+
backend_src = root_dir / "backend" / "src"
|
| 11 |
+
if str(backend_src) not in sys.path:
|
| 12 |
+
sys.path.append(str(backend_src))
|
| 13 |
+
|
| 14 |
from backend import (
|
| 15 |
Dataset,
|
| 16 |
DataGenerationOptions,
|
dataset.py β old_code/dataset.py
RENAMED
|
File without changes
|
gp_visualizer.py β old_code/gp_visualizer.py
RENAMED
|
File without changes
|
gp_visualizer_old.py β old_code/gp_visualizer_old.py
RENAMED
|
File without changes
|