Spaces:
Runtime error
Runtime error
J-Antoine ZAGATO
commited on
Commit
•
09ef45c
1
Parent(s):
9d80551
Fixed TypeError
Browse files
app.py
CHANGED
@@ -277,18 +277,18 @@ with gr.Blocks() as demo:
|
|
277 |
|
278 |
toxi_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "toxic"),
|
279 |
inputs=[input_text, output_text, model_radio],
|
280 |
-
outputs=None,
|
281 |
-
preprocess=False)
|
282 |
|
283 |
unexpected_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "unexpected"),
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
|
288 |
other_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "other"),
|
289 |
inputs=[input_text, output_text, model_radio],
|
290 |
-
outputs=None,
|
291 |
-
preprocess=False)
|
292 |
|
293 |
#demo.launch(debug=True)
|
294 |
if __name__ == "__main__":
|
|
|
277 |
|
278 |
toxi_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "toxic"),
|
279 |
inputs=[input_text, output_text, model_radio],
|
280 |
+
outputs=None,)
|
281 |
+
#preprocess=False) #preprocess throws an error on HF space
|
282 |
|
283 |
unexpected_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "unexpected"),
|
284 |
+
inputs=[input_text, output_text, model_radio],
|
285 |
+
outputs=None,)
|
286 |
+
#preprocess=False)
|
287 |
|
288 |
other_flag_button.click(lambda *args: flagging_callback.flag(args, flag_option = "other"),
|
289 |
inputs=[input_text, output_text, model_radio],
|
290 |
+
outputs=None,)
|
291 |
+
#preprocess=False)
|
292 |
|
293 |
#demo.launch(debug=True)
|
294 |
if __name__ == "__main__":
|