Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,11 +38,10 @@ with gr.Blocks(css="footer {visibility: hidden}") as iface:
|
|
| 38 |
email_input = gr.Textbox(lines=5, label="Enter email text")
|
| 39 |
with gr.Row():
|
| 40 |
classify_btn = gr.Button("Classify")
|
| 41 |
-
|
| 42 |
with gr.Column(scale=1):
|
| 43 |
label_output = gr.Label(label="Classification")
|
| 44 |
-
|
| 45 |
-
|
| 46 |
examples = [
|
| 47 |
["Get fat quick! Buy our cheese burger now!"],
|
| 48 |
["Hi Ajibola, let's go out on a date tonight"],
|
|
@@ -52,7 +51,6 @@ with gr.Blocks(css="footer {visibility: hidden}") as iface:
|
|
| 52 |
gr.Examples(examples, inputs=email_input)
|
| 53 |
|
| 54 |
classify_btn.click(classify_email, inputs=email_input, outputs=label_output)
|
| 55 |
-
analyze_btn.click(analyze_email, inputs=email_input, outputs=analysis_output)
|
| 56 |
|
| 57 |
gr.Markdown(
|
| 58 |
"""
|
|
|
|
| 38 |
email_input = gr.Textbox(lines=5, label="Enter email text")
|
| 39 |
with gr.Row():
|
| 40 |
classify_btn = gr.Button("Classify")
|
| 41 |
+
|
| 42 |
with gr.Column(scale=1):
|
| 43 |
label_output = gr.Label(label="Classification")
|
| 44 |
+
|
|
|
|
| 45 |
examples = [
|
| 46 |
["Get fat quick! Buy our cheese burger now!"],
|
| 47 |
["Hi Ajibola, let's go out on a date tonight"],
|
|
|
|
| 51 |
gr.Examples(examples, inputs=email_input)
|
| 52 |
|
| 53 |
classify_btn.click(classify_email, inputs=email_input, outputs=label_output)
|
|
|
|
| 54 |
|
| 55 |
gr.Markdown(
|
| 56 |
"""
|