Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
from datasets import load_dataset
|
|
|
5 |
|
6 |
global ds
|
7 |
|
@@ -77,7 +78,7 @@ def run_query(input: str):
|
|
77 |
df_results = duckdb.sql(
|
78 |
query=f"""
|
79 |
SELECT *
|
80 |
-
FROM
|
81 |
WHERE act LIKE '%{input}%'
|
82 |
"""
|
83 |
).to_df()
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
from datasets import load_dataset
|
5 |
+
import duckdb
|
6 |
|
7 |
global ds
|
8 |
|
|
|
78 |
df_results = duckdb.sql(
|
79 |
query=f"""
|
80 |
SELECT *
|
81 |
+
FROM train
|
82 |
WHERE act LIKE '%{input}%'
|
83 |
"""
|
84 |
).to_df()
|