lewtun HF Staff commited on
Commit
ca6e083
Β·
1 Parent(s): 3e84548

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,7 +10,7 @@ def predict(text):
10
 
11
  gradio_ui = gr.Interface(
12
  fn=predict,
13
- title="Review analysis",
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 this book!", "The Hunger Games is the worst book ever"],
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)