Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,4 +5,4 @@ HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
|
5 |
|
6 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "callback-test")
|
7 |
|
8 |
-
gr.Interface(lambda x:x, "text", "text").launch()
|
|
|
5 |
|
6 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "callback-test")
|
7 |
|
8 |
+
gr.Interface(lambda x:x, "text", "text", allow_flagging="manual", flagging_callback=hf_writer).launch()
|