Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import requests
|
2 |
import logging
|
3 |
import duckdb
|
@@ -39,6 +40,7 @@ def get_docs_from_parquet(parquet_urls, column, offset, limit):
|
|
39 |
return df[column].tolist()
|
40 |
|
41 |
|
|
|
42 |
def generate_topics(dataset, config, split, column, nested_column):
|
43 |
logging.info(
|
44 |
f"Generating topics for {dataset} with config {config} {split} {column} {nested_column}"
|
|
|
1 |
+
import spaces
|
2 |
import requests
|
3 |
import logging
|
4 |
import duckdb
|
|
|
40 |
return df[column].tolist()
|
41 |
|
42 |
|
43 |
+
@spaces.GPU
|
44 |
def generate_topics(dataset, config, split, column, nested_column):
|
45 |
logging.info(
|
46 |
f"Generating topics for {dataset} with config {config} {split} {column} {nested_column}"
|