Spaces:
Running
Running
dataset logger cheypi
Browse files
app.py
CHANGED
@@ -48,6 +48,24 @@ try:
|
|
48 |
if HF_TOKEN
|
49 |
else gradio.CSVLogger()
|
50 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
except Exception as e:
|
52 |
request_logger = gradio.CSVLogger()
|
53 |
print(f"Error in setting up HuggingFaceDatasetSaver: {e}")
|
|
|
48 |
if HF_TOKEN
|
49 |
else gradio.CSVLogger()
|
50 |
)
|
51 |
+
request_logger.setup(
|
52 |
+
[
|
53 |
+
gradio.Markdown(label="Spoken Language Sentence"),
|
54 |
+
gradio.Markdown(label="Text Language"),
|
55 |
+
gradio.Markdown(label="Sign Language"),
|
56 |
+
gradio.Markdown(label="Exception"),
|
57 |
+
gradio.Markdown(label="Timestamp"),
|
58 |
+
],
|
59 |
+
"flagged",
|
60 |
+
)
|
61 |
+
request_logger = (
|
62 |
+
gradio.HuggingFaceDatasetSaver(
|
63 |
+
HF_TOKEN,
|
64 |
+
"sltAI/crowdsourced-text-to-sign-language-rule-based-translation-corpus",
|
65 |
+
)
|
66 |
+
if HF_TOKEN
|
67 |
+
else gradio.CSVLogger()
|
68 |
+
)
|
69 |
except Exception as e:
|
70 |
request_logger = gradio.CSVLogger()
|
71 |
print(f"Error in setting up HuggingFaceDatasetSaver: {e}")
|