Spaces:
Runtime error
Runtime error
Update check_requests.py
Browse files- check_requests.py +20 -0
check_requests.py
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import json
|
| 3 |
+
from datetime import datetime, timezone
|
| 4 |
+
from dataclasses import dataclass
|
| 5 |
+
|
| 6 |
+
import gradio as gr
|
| 7 |
+
from huggingface_hub import HfApi
|
| 8 |
+
from huggingface_hub.hf_api import ModelInfo
|
| 9 |
+
from enum import Enum
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
OWNER = "EnergyStarAI"
|
| 13 |
+
COMPUTE_SPACE = f"{OWNER}/launch-computation-example"
|
| 14 |
+
REQUESTS_DATASET_PATH = f"{OWNER}/requests_debug"
|
| 15 |
+
RESULTS_DATASET_PATH = f"{OWNER}/results_debug"
|
| 16 |
+
|
| 17 |
+
TOKEN = os.environ.get("DEBUG")
|
| 18 |
+
API = HfApi(token=TOKEN)
|
| 19 |
+
|
| 20 |
+
# git clone https://huggingface.co/datasets/EnergyStarAI/requests_debug/
|