Spaces:
Running
on
Zero
Running
on
Zero
File size: 454 Bytes
562c833 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from pathlib import Path
import gradio
from gradio.utils import get_cache_folder
class Examples(gradio.helpers.Examples):
def __init__(self, *args, directory_name=None, **kwargs):
super().__init__(*args, **kwargs, _initiated_directly=False)
if directory_name is not None:
self.cached_folder = get_cache_folder() / directory_name
self.cached_file = Path(self.cached_folder) / "log.csv"
self.create()
|