Spaces:
Runtime error
Runtime error
h3110Fr13nd
commited on
Commit
·
3905ea4
1
Parent(s):
e530cca
changes
Browse files- ddl_query_generator.py +5 -0
ddl_query_generator.py
CHANGED
@@ -10,6 +10,11 @@ from flask import Flask, render_template, request
|
|
10 |
from langchain_community.llms import Ollama
|
11 |
from langchain_core.prompts import PromptTemplate
|
12 |
from langchain.chains import LLMChain
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
print("Starting the server...")
|
15 |
app = Flask(__name__)
|
|
|
10 |
from langchain_community.llms import Ollama
|
11 |
from langchain_core.prompts import PromptTemplate
|
12 |
from langchain.chains import LLMChain
|
13 |
+
import subprocess
|
14 |
+
|
15 |
+
|
16 |
+
command = "ollama serve & sleep 5"
|
17 |
+
subprocess.run(command, shell=True, check=True, text=True)
|
18 |
|
19 |
print("Starting the server...")
|
20 |
app = Flask(__name__)
|