Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ con = duckdb.connect(":memory:")
|
|
| 5 |
|
| 6 |
def greet(SQL_Query):
|
| 7 |
if "limit" not in SQL_Query.lower():
|
| 8 |
-
raise gr.Error("You should use the LIMIT clause or it may take too much time to run your query. For example
|
| 9 |
return con.sql(SQL_Query).df()
|
| 10 |
|
| 11 |
examples = [
|
|
|
|
| 5 |
|
| 6 |
def greet(SQL_Query):
|
| 7 |
if "limit" not in SQL_Query.lower():
|
| 8 |
+
raise gr.Error("You should use the LIMIT clause or it may take too much time to run your query. For example: ```LIMIT 10000```")
|
| 9 |
return con.sql(SQL_Query).df()
|
| 10 |
|
| 11 |
examples = [
|