Abubakar Abid
commited on
Commit
•
32294f6
1
Parent(s):
8c1a379
Update app.py
Browse files
app.py
CHANGED
@@ -8,4 +8,4 @@ import gradio as gr
|
|
8 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
9 |
description = "Translate something from English to French. Flag to add to this dataset: https://huggingface.co/datasets/abidlabs/test-image-classifier-dataset."
|
10 |
hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "test-translation-dataset")
|
11 |
-
gr.Interface.load("huggingface/t5-base", flagging_callback=hf_saver).launch()
|
|
|
8 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
9 |
description = "Translate something from English to French. Flag to add to this dataset: https://huggingface.co/datasets/abidlabs/test-image-classifier-dataset."
|
10 |
hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "test-translation-dataset")
|
11 |
+
gr.Interface.load("huggingface/t5-base", flagging_callback=hf_saver, description=description).launch()
|