Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ def predict(query :str , chat_history : List[tuple[str,str]] , invocation_type :
|
|
11 |
try:
|
12 |
res = a.create_sql_agent(query,schemas)
|
13 |
except Exception as e:
|
14 |
-
print(e)
|
15 |
return "Due to limited compute, I am unable to answer at this moment. Please upgrade your deployment space."
|
16 |
elif invocation_type == "OIC":
|
17 |
try:
|
@@ -20,7 +19,6 @@ def predict(query :str , chat_history : List[tuple[str,str]] , invocation_type :
|
|
20 |
chat+= f"User: {user} Bot: {bot}\n\n"
|
21 |
res = a.search_from_db(query, chat)
|
22 |
except Exception as e:
|
23 |
-
print(e)
|
24 |
return "Due to limited compute, I am unable to answer at this moment. Please upgrade your deployment space."
|
25 |
return res
|
26 |
|
|
|
11 |
try:
|
12 |
res = a.create_sql_agent(query,schemas)
|
13 |
except Exception as e:
|
|
|
14 |
return "Due to limited compute, I am unable to answer at this moment. Please upgrade your deployment space."
|
15 |
elif invocation_type == "OIC":
|
16 |
try:
|
|
|
19 |
chat+= f"User: {user} Bot: {bot}\n\n"
|
20 |
res = a.search_from_db(query, chat)
|
21 |
except Exception as e:
|
|
|
22 |
return "Due to limited compute, I am unable to answer at this moment. Please upgrade your deployment space."
|
23 |
return res
|
24 |
|