Spaces:
Sleeping
Sleeping
Update app.py
Browse files722 unmodified lines7237247257267277287297307317327337347357367371048 unmodified lines1786178717881789179017911792722 unmodified lines# Convert the styled DataFrame to HTML for Gradio displaystyled_html = styled_df.to_html()# Now use Gradio's HTML block to display the table with the colorsimport gradio as grinterface = gr.Interface(fn=lambda: styled_html,inputs=[],outputs=gr.HTML(),)interface.launch()#df_builder_pivot = df_builder_pivot.sort_values(# by=["%"], ascending=[False]#)1048 unmodified linesvisible=True,)gr.Markdown("<b>Try our TrustMaximiserAI.</b><br>"+ "<b>Select</b> which dataset you want to use: (e.g., select 'Volkswagen Prospects' as the dataset)<br>",visible=True,)722 unmodified lines7237247257267277287297307317327337347357361048 unmodified lines1785178617871788178917901791722 unmodified lines# Convert the styled DataFrame to HTML for Gradio displaystyled_html = styled_df.to_html()interface = gr.Interface(fn=lambda: [styled_html, df_builder_pivot], # Return all outputs as a listinputs=[],outputs=[gr.HTML(), gr.Dataframe()])#df_builder_pivot = df_builder_pivot.sort_values(# by=["%"], ascending=[False]#)1048 unmodified linesvisible=True,)gr.Markdown("<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