update gradio version
Browse files- README.md +1 -1
- app_debug.py +12 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🦀
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
python_version: 3.10.13
|
9 |
app_file: app.py
|
10 |
pinned: false
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.20.1
|
8 |
python_version: 3.10.13
|
9 |
app_file: app.py
|
10 |
pinned: false
|
app_debug.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import shlex
|
3 |
+
import gradio as gr
|
4 |
+
import subprocess
|
5 |
+
from huggingface_hub import HfApi
|
6 |
+
|
7 |
+
hf_token = os.getenv("LSM_token")
|
8 |
+
|
9 |
+
api = HfApi()
|
10 |
+
api.snapshot_download(repo_id="kairunwen/LSM_private", repo_type="space", local_dir=".", token=hf_token)
|
11 |
+
subprocess.run(shlex.split("pip install -r requirements.txt"))
|
12 |
+
subprocess.run(shlex.split("python app.py"))
|