Spaces:
Runtime error
Runtime error
import os | |
import re | |
import json | |
from pathlib import Path | |
from huggingface_hub import Repository, HfFolder | |
import tqdm | |
import subprocess | |
from fastapi import FastAPI | |
from fastapi_utils.tasks import repeat_every | |
from datasets import load_dataset, Image | |
def get_datasetdata(dataset_path): | |
print("todo") | |
def sync_discussion_to_dataset(): | |
print("todo") | |
#dataset = load_dataset("beans", split="train") | |
#dataset[0]["image"] | |
app = FastAPI() | |
def read_root(): | |
return "Just a bot to push data to huggingface datasets " | |
def sync(): | |
return "Synced data to huggingface datasets" | |
def repeat_sync(): | |
sync_discussion_to_dataset() | |
return "Synced data to huggingface datasets" | |