Spaces:
Sleeping
Sleeping
Update gradio/app.py
Browse files- gradio/app.py +3 -1
gradio/app.py
CHANGED
@@ -282,10 +282,12 @@ async def compare_face(image1: UploadFile = File(...), image2: UploadFile = File
|
|
282 |
if __name__ == '__main__':
|
283 |
g_activation_result = activate_sdk()
|
284 |
# launch_demo(g_activation_result)
|
|
|
285 |
dummy_interface = gr.Interface(
|
286 |
fn=lambda x: "API ready.",
|
287 |
inputs=gr.Textbox(label="Info"),
|
288 |
-
outputs=gr.Textbox(label="Response")
|
|
|
289 |
)
|
290 |
|
291 |
gr_app = gr.mount_gradio_app(app, dummy_interface)
|
|
|
282 |
if __name__ == '__main__':
|
283 |
g_activation_result = activate_sdk()
|
284 |
# launch_demo(g_activation_result)
|
285 |
+
|
286 |
dummy_interface = gr.Interface(
|
287 |
fn=lambda x: "API ready.",
|
288 |
inputs=gr.Textbox(label="Info"),
|
289 |
+
outputs=gr.Textbox(label="Response"),
|
290 |
+
allow_flagging="never" # 🚫 disables writing to `flagged/`
|
291 |
)
|
292 |
|
293 |
gr_app = gr.mount_gradio_app(app, dummy_interface)
|