CognitiveScience commited on
Commit
b7956c7
1 Parent(s): a297e9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -75,15 +75,15 @@ with gr.Blocks() as demo:
75
  with gr.Column():
76
  #with gr.Box():
77
  #gr.Markdown("Based on dataset [here](https://huggingface.co/datasets/freddyaboulton/gradio-reviews)")
78
- data = gr.Dataframe()
79
- #count = gr.Number(label="Rates!")
80
- #with gr.Column():
81
- #name = gr.Textbox(label="Name", placeholder="What is your name?")
82
- #review = gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
83
- #comments = gr.Textbox(label="Comments", lines=10, placeholder="Do you have any feedback on gradio?")
84
- #submit = gr.Button(value="Submit Feedback")
85
 
86
- #submit.click(add_review, [name, review, comments], [data, count])
87
  #demo.load(load_data, None, [data, count])
88
 
89
  def backup_db():
 
75
  with gr.Column():
76
  #with gr.Box():
77
  #gr.Markdown("Based on dataset [here](https://huggingface.co/datasets/freddyaboulton/gradio-reviews)")
78
+ data = gr.Dataframe()
79
+ count = gr.Number(label="Rates!")
80
+ with gr.Column():
81
+ name = gr.Textbox(label="Name", placeholder="What is your name?")
82
+ review = gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
83
+ comments = gr.Textbox(label="Comments", lines=10, placeholder="Do you have any feedback on gradio?")
84
+ submit = gr.Button(value="Submit Feedback")
85
 
86
+ submit.click(add_review, [name, review, comments], [data, count])
87
  #demo.load(load_data, None, [data, count])
88
 
89
  def backup_db():