Spaces:
Runtime error
Runtime error
Commit
·
5072ba2
1
Parent(s):
7463417
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,18 +72,18 @@ def load_data():
|
|
| 72 |
|
| 73 |
with gr.Blocks() as demo:
|
| 74 |
with gr.Row():
|
| 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():
|
|
|
|
| 72 |
|
| 73 |
with gr.Blocks() as demo:
|
| 74 |
with gr.Row():
|
| 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():
|