Space is displaying infinitely loading while status is "Running"

Found solution. It was because of stacking several functions together. After UI update Gradio doesn’t accept something like

model_iface = gr.Interface(
    fn=[your_function_1, your_function_2],
    inputs=gr.inputs.Textbox(),
    outputs=gr.outputs.Label(num_top_classes=10),
    examples=[["first example"],
              ["second example"]]
)
model_iface.launch()

It should use gr.Parallel() instead. So the final code should be

model_1_iface = gr.Interface(
    fn=your_function_1,
    inputs=gr.inputs.Textbox(),
    outputs=gr.outputs.Label(num_top_classes=10)
)

model_2_iface = gr.Interface(
    fn= your_function_2,
    inputs=gr.inputs.Textbox(),
    outputs=gr.outputs.Label(num_top_classes=10),

)

combined_url_iface = gr.Parallel(model_1_iface, model_2_iface, 
                      examples=[["first example"],
                                ["second example"]])
combined_url_iface.launch()
1 Like