Spaces:
Sleeping
Sleeping
Commit
·
9c3dbfb
1
Parent(s):
b719566
pre install
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from utils.caller.llm_client import (
|
3 |
chat_completions,
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
def install(package):
|
5 |
+
subprocess.check_call([os.sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
|
6 |
+
|
7 |
+
install()
|
8 |
+
|
9 |
import gradio as gr
|
10 |
from utils.caller.llm_client import (
|
11 |
chat_completions,
|