Spaces:
Running
Running
ovi054
commited on
Commit
·
9ac1f33
1
Parent(s):
5307740
New Output Field Support
Browse files
app.py
CHANGED
@@ -570,8 +570,8 @@ def model_predict(word):
|
|
570 |
'''
|
571 |
|
572 |
import gradio as gr
|
573 |
-
HF_TOKEN = os.getenv("
|
574 |
-
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "
|
575 |
|
576 |
demo = gr.Interface(fn=model_predict, inputs= "paint", outputs=["image","text"],allow_flagging="auto",flagging_callback=hf_writer)
|
577 |
|
|
|
570 |
'''
|
571 |
|
572 |
import gradio as gr
|
573 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
574 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "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")
|
575 |
|
576 |
demo = gr.Interface(fn=model_predict, inputs= "paint", outputs=["image","text"],allow_flagging="auto",flagging_callback=hf_writer)
|
577 |
|