Spaces:
Sleeping
Sleeping
Update app.py
Browse files722 unmodified lines7237247257267277267277287307297307327317327347337347357361048 unmodified lines17851786178717891788178917901791722 unmodified lines # Convert the styled DataFrame to HTML for Gradio display styled_html = styled_df.to_html() # Now use Gradio's HTML block to display the table with the colors import gradio as gr interface = gr.Interface( fn=lambda: styled_html, fn=lambda: [styled_html, df_builder_pivot], # Return all outputs as a list inputs=[], outputs=gr.HTML(), outputs=[gr.HTML(), gr.Dataframe()] ) interface.launch()
#df_builder_pivot = df_builder_pivot.sort_values( # by=["%"], ascending=[False] #)1048 unmodified lines visible=True, ) gr.Markdown( "<b>Try our TrustMaximiserAI.</b><br>" "<b>Try our TrustifierAI.</b><br>" + "<b>Select</b> which dataset you want to use: (e.g., select 'Volkswagen Prospects' as the dataset)<br>", visible=True, )app.py+5-6