pahri commited on
Commit
49efdc6
·
verified ·
1 Parent(s): da3ea9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,15 +21,16 @@ def analyze_text(text):
21
 
22
  title = "Analisa Review Restoran Anda"
23
  examples = [["Penyajiannya super aesthetic & instagramable.. Tempatnya juga keren, bikin betah & pengen foto-foto terus. Pelayanan ramah, parkir lumayan memadai. Recommended"]]
 
24
 
25
  interface = gr.Interface(
26
  fn=analyze_text,
27
- inputs=gr.inputs.Textbox(lines=2, placeholder="Masukkan review restoran Anda di sini..."),
28
- outputs="text",
29
  description=description,
30
  title=title,
31
  examples=examples,
32
  layout="vertical" # Set the layout to vertical
33
  )
34
 
35
- interface.launch()
 
21
 
22
  title = "Analisa Review Restoran Anda"
23
  examples = [["Penyajiannya super aesthetic & instagramable.. Tempatnya juga keren, bikin betah & pengen foto-foto terus. Pelayanan ramah, parkir lumayan memadai. Recommended"]]
24
+ description = "Masukkan review restoran Anda untuk menganalisa aspek dan sentimen."
25
 
26
  interface = gr.Interface(
27
  fn=analyze_text,
28
+ inputs=gr.Textbox(lines=2, placeholder="Masukkan review restoran Anda di sini..."),
29
+ outputs=gr.Text(),
30
  description=description,
31
  title=title,
32
  examples=examples,
33
  layout="vertical" # Set the layout to vertical
34
  )
35
 
36
+ interface.launch()