Small feedback πŸ’œ

#2
by merve HF staff - opened
scikit-learn org

@MuskanMjn great work!!! πŸ‘ πŸ‘
I have few minor feedbacks to make your demo even better:

  1. it would be nice to adjust the matplotlib plot to fit inside the plot component.
  2. Have the table of XOR operator below the actual demo itself
  3. Replace submit button with event listener, see an example below:
    (replace submit_button.click() with radio_button.change())
import gradio as gr

def welcome(name):
    return f"Welcome to Gradio, {name}!"

with gr.Blocks() as demo:
    gr.Markdown(
    """
    # Hello World!
    Start typing below to see the output.
    """)
    inp = gr.Textbox(placeholder="What is your name?")
    out = gr.Textbox()
    inp.change(welcome, inp, out)

demo.launch()
scikit-learn org

Hi Merve! Thank you for the feedback. πŸ€—

Made the changes!

scikit-learn org

hey @MuskanMjn , the table seems very big, what do you think of making it a markdown table with gr.Markdown() instead?

scikit-learn org

hey @merve , I wasn't able to control the alignment with MD. Have added an HTML table though!

Sign up or log in to comment