Spaces:
Runtime error
Runtime error
Commit
·
37c8949
1
Parent(s):
3ee26a2
Update look and feel of Gradio web app
Browse files
app.py
CHANGED
@@ -16,7 +16,14 @@ def analyze(text):
|
|
16 |
pred = pred[pred.find('(')+1:pred.find(')')]
|
17 |
return pred
|
18 |
|
19 |
-
app = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# app.launch(share="True")
|
22 |
app.launch()
|
|
|
16 |
pred = pred[pred.find('(')+1:pred.find(')')]
|
17 |
return pred
|
18 |
|
19 |
+
app = gr.Interface(
|
20 |
+
fn=analyze,
|
21 |
+
inputs=gr.Textbox(label="Argument", lines=4,
|
22 |
+
placeholder="Enter argument here..."),
|
23 |
+
outputs=gr.Textbox(label="Quality", lines=1,
|
24 |
+
placeholder="Predicted quality will be displayed here..."),
|
25 |
+
title="Argument Quality Analyzer"
|
26 |
+
)
|
27 |
|
28 |
# app.launch(share="True")
|
29 |
app.launch()
|