Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ def predict(query :str , chat_history : List[tuple[str,str]] , invocation_type :
|
|
| 8 |
with open("config.json",'r') as f:
|
| 9 |
hyperparameters = json.load(f)
|
| 10 |
a = OWiki(**hyperparameters)
|
|
|
|
| 11 |
if invocation_type =="SQL":
|
| 12 |
try:
|
| 13 |
res = a.create_sql_agent(query,schemas)
|
|
|
|
| 8 |
with open("config.json",'r') as f:
|
| 9 |
hyperparameters = json.load(f)
|
| 10 |
a = OWiki(**hyperparameters)
|
| 11 |
+
local_llm = LocalLLM(**hyperparameters)
|
| 12 |
if invocation_type =="SQL":
|
| 13 |
try:
|
| 14 |
res = a.create_sql_agent(query,schemas)
|