Created
February 24, 2022 16:43
-
-
Save kingabzpro/11fc1f7c14d52d4a6cc7c638640f0cc9 to your computer and use it in GitHub Desktop.
Deploying Gradio App on Spaces Using DagsHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HF_TOKEN = os.getenv("HF_TOKEN") | |
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "savtadepth-flags") | |
iface = gr.Interface( | |
gen, | |
gr.inputs.Image(shape=(640, 480), type="numpy"), | |
"image", | |
title=title, | |
description=description, | |
article=article, | |
examples=examples, | |
theme="peach", | |
allow_flagging="manual", | |
flagging_callback=hf_writer | |
) | |
iface.launch(enable_queue=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment