Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,14 +12,14 @@ def greet(SQL_Query):
|
|
12 |
return df
|
13 |
|
14 |
examples = [
|
15 |
-
"SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' LIMIT 10;",
|
16 |
-
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' WHERE language_score > 0.97 LIMIT 10;",
|
17 |
-
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' WHERE language_score < 0.67 LIMIT 10;",
|
18 |
-
"SELECT dump, min(language_score), avg(language_score), max(language_score) FROM\n(SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' LIMIT 10000)\nGROUP BY dump;",
|
19 |
-
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' WHERE text SIMILAR TO '([A-Z ]){
|
20 |
-
"SELECT dump, min(token_count), avg(token_count), max(token_count) FROM\n(SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb/sample/10BT/*.parquet' LIMIT 10000)\nGROUP BY dump;",
|
21 |
]
|
22 |
css = "#component-4{display: block;}"
|
23 |
-
description = "Run SQL queries on the HuggingFaceFW/fineweb dataset"
|
24 |
demo = gr.Interface(fn=greet, inputs="text", outputs="dataframe", examples=examples, cache_examples=False, description=description, css=css)
|
25 |
demo.launch()
|
|
|
12 |
return df
|
13 |
|
14 |
examples = [
|
15 |
+
"SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' LIMIT 10;",
|
16 |
+
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' WHERE language_score > 0.97 LIMIT 10;",
|
17 |
+
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' WHERE language_score < 0.67 LIMIT 10;",
|
18 |
+
"SELECT dump, min(language_score), avg(language_score), max(language_score) FROM\n(SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' LIMIT 10000)\nGROUP BY dump;",
|
19 |
+
"SELECT text, language_score FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' WHERE text SIMILAR TO '([A-Z ]){3,}.*' LIMIT 10;",
|
20 |
+
"SELECT dump, min(token_count), avg(token_count), max(token_count) FROM\n(SELECT * FROM 'hf://datasets/HuggingFaceFW/fineweb-edu/sample/10BT/*.parquet' LIMIT 10000)\nGROUP BY dump;",
|
21 |
]
|
22 |
css = "#component-4{display: block;}"
|
23 |
+
description = "Run SQL queries on the HuggingFaceFW/fineweb-edu dataset"
|
24 |
demo = gr.Interface(fn=greet, inputs="text", outputs="dataframe", examples=examples, cache_examples=False, description=description, css=css)
|
25 |
demo.launch()
|