We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice another bug for gr.Dataframe, i.e., the search & filter functionality doesn't work for text cells.
import pandas as pd import gradio as gr # Creating a sample dataframe def run(): df = pd.DataFrame({ "A" : ["Apparel & Accessories", "Home & Garden", "Health & Beauty", "Cameras & Optics", "Apparel & Accessories"], "B" : [6, 2, 54, 3, 2], "C" : [3, 20, 7, 3, 8], "D" : [2, 3, 6, 2, 6], "E" : [-1, 45, 64, 32, 23] }) df = df.style.map(color_num, subset=["E"]) return df # Function to apply text color def color_num(value: float) -> str: color = "red" if value >= 0 else "green" color_style = "color: {}".format(color) return color_style # Displaying the styled dataframe in Gradio with gr.Blocks() as demo: gr.Textbox("{}".format(gr.__version__)) a = gr.DataFrame(show_search="search") b = gr.Button("run") b.click(run,outputs=a) demo.launch()
No response
gradio = 5.17.1
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
gr.Dataframe
abidlabs
hannahblair
Successfully merging a pull request may close this issue.
Describe the bug
Notice another bug for gr.Dataframe, i.e., the search & filter functionality doesn't work for text cells.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: