Spaces:
Running
Running
Commit
·
71f6f34
1
Parent(s):
d7c4521
first commit
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import math
|
2 |
-
|
3 |
from datasets import load_dataset
|
4 |
import gradio as gr
|
|
|
5 |
|
6 |
-
|
|
|
7 |
# print(f"Loaded WHOOPS!, first example:")
|
8 |
# print(whoops[0])
|
9 |
dataset_size = len(whoops)
|
|
|
1 |
import math
|
|
|
2 |
from datasets import load_dataset
|
3 |
import gradio as gr
|
4 |
+
import os
|
5 |
|
6 |
+
auth_token = os.environ.get("auth_token")
|
7 |
+
whoops = load_dataset("nlphuji/whoops", use_auth_token=auth_token)['test']
|
8 |
# print(f"Loaded WHOOPS!, first example:")
|
9 |
# print(whoops[0])
|
10 |
dataset_size = len(whoops)
|