Spaces:
Runtime error
Runtime error
refactor app.py to ui_app.py
Browse files- .vscode/launch.json +1 -1
- README.md +2 -2
- app.py → ui_app.py +1 -1
.vscode/launch.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"program": "~/miniconda3/envs/project_charles/bin/streamlit",
|
| 20 |
"args": [
|
| 21 |
"run",
|
| 22 |
-
"
|
| 23 |
// "debug_app.py"
|
| 24 |
]
|
| 25 |
}
|
|
|
|
| 19 |
"program": "~/miniconda3/envs/project_charles/bin/streamlit",
|
| 20 |
"args": [
|
| 21 |
"run",
|
| 22 |
+
"ui_app.py"
|
| 23 |
// "debug_app.py"
|
| 24 |
]
|
| 25 |
}
|
README.md
CHANGED
|
@@ -6,7 +6,7 @@ colorTo: green
|
|
| 6 |
sdk: streamlit
|
| 7 |
python_version: 3.11
|
| 8 |
sdk_version: 1.26.0
|
| 9 |
-
app_file:
|
| 10 |
pinned: true
|
| 11 |
license: mit
|
| 12 |
models: ["laion/CLIP-ViT-L-14-DataComp.XL-s13B-b90K"]
|
|
@@ -61,7 +61,7 @@ Get-Content packages.txt | ForEach-Object { choco install $_ -y }
|
|
| 61 |
## How to run
|
| 62 |
|
| 63 |
```bash
|
| 64 |
-
streamlit run
|
| 65 |
```
|
| 66 |
|
| 67 |
## Known Issues
|
|
|
|
| 6 |
sdk: streamlit
|
| 7 |
python_version: 3.11
|
| 8 |
sdk_version: 1.26.0
|
| 9 |
+
app_file: ui_app.py
|
| 10 |
pinned: true
|
| 11 |
license: mit
|
| 12 |
models: ["laion/CLIP-ViT-L-14-DataComp.XL-s13B-b90K"]
|
|
|
|
| 61 |
## How to run
|
| 62 |
|
| 63 |
```bash
|
| 64 |
+
streamlit run ui_app.py
|
| 65 |
```
|
| 66 |
|
| 67 |
## Known Issues
|
app.py → ui_app.py
RENAMED
|
@@ -35,7 +35,7 @@ def init_ray():
|
|
| 35 |
try:
|
| 36 |
subprocess.check_output(["ray", "start", "--include-dashboard=True", "--head"])
|
| 37 |
except Exception as e:
|
| 38 |
-
print (f"
|
| 39 |
# Connect to a running Ray cluster
|
| 40 |
while not ray.is_initialized():
|
| 41 |
time.sleep(0.1)
|
|
|
|
| 35 |
try:
|
| 36 |
subprocess.check_output(["ray", "start", "--include-dashboard=True", "--head"])
|
| 37 |
except Exception as e:
|
| 38 |
+
print (f"ui_app.py init_ray: {e}")
|
| 39 |
# Connect to a running Ray cluster
|
| 40 |
while not ray.is_initialized():
|
| 41 |
time.sleep(0.1)
|