Spaces:
Paused
Paused
auth
Browse files
app.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from langchain.embeddings import HuggingFaceEmbeddings
|
| 3 |
from langchain.vectorstores import Chroma
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
script_path = './setup.sh' # Adjust the path if needed
|
| 4 |
+
|
| 5 |
+
# Replace the current process with the shell script
|
| 6 |
+
os.execvp('bash', ['bash', script_path])
|
| 7 |
+
|
| 8 |
+
|
| 9 |
import gradio as gr
|
| 10 |
from langchain.embeddings import HuggingFaceEmbeddings
|
| 11 |
from langchain.vectorstores import Chroma
|