Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def predict(text):
|
|
10 |
|
11 |
gradio_ui = gr.Interface(
|
12 |
fn=predict,
|
13 |
-
title="
|
14 |
description="Enter some review text about an Amazon product and check what the model predicts for it's star rating.",
|
15 |
inputs=[
|
16 |
gr.inputs.Textbox(lines=5, label="Paste some text here"),
|
@@ -20,8 +20,8 @@ gradio_ui = gr.Interface(
|
|
20 |
gr.outputs.Textbox(label="Score"),
|
21 |
],
|
22 |
examples=[
|
23 |
-
["I love
|
24 |
],
|
25 |
)
|
26 |
|
27 |
-
gradio_ui.launch()
|
|
|
10 |
|
11 |
gradio_ui = gr.Interface(
|
12 |
fn=predict,
|
13 |
+
title="Predicting review scores from customer reviews",
|
14 |
description="Enter some review text about an Amazon product and check what the model predicts for it's star rating.",
|
15 |
inputs=[
|
16 |
gr.inputs.Textbox(lines=5, label="Paste some text here"),
|
|
|
20 |
gr.outputs.Textbox(label="Score"),
|
21 |
],
|
22 |
examples=[
|
23 |
+
["I love these running shoes!", "Ich hasse dieses Buch"],
|
24 |
],
|
25 |
)
|
26 |
|
27 |
+
gradio_ui.launch(debug=True)
|