jhshao
add app
02f6d94
raw
history blame
454 Bytes
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()