Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
•
344e7b1
1
Parent(s):
3333d36
Update app.py
Browse files
app.py
CHANGED
@@ -77,12 +77,13 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
submit.click(add_review, [name, review, comments], [data, count])
|
87 |
#demo.load(load_data, None, [data, count])
|
88 |
|
|
|
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.Row():
|
81 |
with gr.Column():
|
82 |
+
name = gr.Textbox(label="a") #, placeholder="What is your name?")
|
83 |
+
review = gr.Textbox(label="b") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
84 |
+
comments = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
85 |
+
submit = gr.Button(value=".")
|
86 |
+
|
87 |
submit.click(add_review, [name, review, comments], [data, count])
|
88 |
#demo.load(load_data, None, [data, count])
|
89 |
|