Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import os
|
| 2 |
-
import
|
| 3 |
import gradio as gr
|
| 4 |
from epub2txt import epub2txt
|
| 5 |
from websocket import create_connection
|
|
@@ -8,7 +8,7 @@ if not os.path.exists(os.getenv("checkpoint_path")):
|
|
| 8 |
os.system("git clone --recurse-submodules https://github.com/ztxz16/fastllm.git")
|
| 9 |
os.system("cd fastllm; mkdir build; cd build; cmake ..; make -j; cd tools; python setup.py install --user --prefix=")
|
| 10 |
os.system("wget https://huggingface.co/huangyuyang/chatglm2-6b-int4.flm/resolve/main/chatglm2-6b-int4.flm")
|
| 11 |
-
|
| 12 |
|
| 13 |
class GUI:
|
| 14 |
def __init__(self, *args, **kwargs):
|
|
|
|
| 1 |
import os
|
| 2 |
+
import subprocess
|
| 3 |
import gradio as gr
|
| 4 |
from epub2txt import epub2txt
|
| 5 |
from websocket import create_connection
|
|
|
|
| 8 |
os.system("git clone --recurse-submodules https://github.com/ztxz16/fastllm.git")
|
| 9 |
os.system("cd fastllm; mkdir build; cd build; cmake ..; make -j; cd tools; python setup.py install --user --prefix=")
|
| 10 |
os.system("wget https://huggingface.co/huangyuyang/chatglm2-6b-int4.flm/resolve/main/chatglm2-6b-int4.flm")
|
| 11 |
+
subprocess.Popen("uvicorn api:app --reload")
|
| 12 |
|
| 13 |
class GUI:
|
| 14 |
def __init__(self, *args, **kwargs):
|