Spaces:
Runtime error
Runtime error
patrickvonplaten
commited on
Commit
•
fe359f8
1
Parent(s):
e548d82
up
Browse files
app.py
CHANGED
@@ -127,10 +127,10 @@ def convert(*keywords):
|
|
127 |
num_files += len(all_files)
|
128 |
|
129 |
for filename in all_files:
|
130 |
-
try:
|
131 |
-
|
132 |
-
except Exception as e:
|
133 |
-
|
134 |
|
135 |
break
|
136 |
|
@@ -146,7 +146,7 @@ def convert(*keywords):
|
|
146 |
repo_type="dataset",
|
147 |
)
|
148 |
|
149 |
-
return "Done"
|
150 |
|
151 |
inputs = [gr.Textbox(label=f"Enter your keywords for {k}", max_lines=2, placeholder=CAT_TO_CODEWORDS[k], value=",".join(CAT_TO_CODEWORDS[k])) for k in CATEGORIES]
|
152 |
|
|
|
127 |
num_files += len(all_files)
|
128 |
|
129 |
for filename in all_files:
|
130 |
+
# try:
|
131 |
+
result_files += main(filename)
|
132 |
+
#except Exception as e:
|
133 |
+
# print(f"{filename} not working because \n {e}")
|
134 |
|
135 |
break
|
136 |
|
|
|
146 |
repo_type="dataset",
|
147 |
)
|
148 |
|
149 |
+
return f"Done: {len(result_files)}"
|
150 |
|
151 |
inputs = [gr.Textbox(label=f"Enter your keywords for {k}", max_lines=2, placeholder=CAT_TO_CODEWORDS[k], value=",".join(CAT_TO_CODEWORDS[k])) for k in CATEGORIES]
|
152 |
|