File size: 511 Bytes
4b24692 63399bb adf1c79 40c7d40 97f1cf3 d9f024f 0420f0c 63399bb 8c1a379 |
1 2 3 4 5 6 7 8 9 10 11 12 |
#### ignore these lines
import os
os.system("pip uninstall -y gradio")
os.system("pip install gradio==2.5.8a0")
### -------------------------
import gradio as gr
HF_TOKEN = os.getenv('HF_TOKEN')
description = "Translate something from English to French. Flag to add to this dataset: https://huggingface.co/datasets/abidlabs/test-image-classifier-dataset."
hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "test-translation-dataset")
gr.Interface.load("huggingface/t5-base", flagging_callback=hf_saver).launch()
|