Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Peter
commited on
Commit
·
4aad54f
1
Parent(s):
3ca941f
docstrings
Browse files
app.py
CHANGED
|
@@ -117,6 +117,11 @@ def proc_submission(
|
|
| 117 |
|
| 118 |
|
| 119 |
def load_examples(examples_dir="examples"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
src = _here / examples_dir
|
| 121 |
src.mkdir(exist_ok=True)
|
| 122 |
examples = [f for f in src.glob("*.txt")]
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
def load_examples(examples_dir="examples"):
|
| 120 |
+
"""
|
| 121 |
+
load_examples - a helper function for the gradio module to load examples
|
| 122 |
+
Returns:
|
| 123 |
+
list of str, the examples
|
| 124 |
+
"""
|
| 125 |
src = _here / examples_dir
|
| 126 |
src.mkdir(exist_ok=True)
|
| 127 |
examples = [f for f in src.glob("*.txt")]
|