Samson commited on
Commit
c53b2a3
1 Parent(s): c75e93f

correct typo

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -7,9 +7,6 @@
7
  # inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
8
  # outputs="text")
9
  # iface.launch()
10
-
11
-
12
-
13
  from transformers import pipeline
14
  import gradio as gr
15
 
@@ -21,6 +18,6 @@ def predict(prompt):
21
 
22
  with gr.Blocks() as demo:
23
  textbox = gr.Textbox(placeholder="Enter what you need to summarize", lines = 4)
24
- gr.Interface(fn=predict, input=textbox, output='text')
25
 
26
  demo.launch()
 
7
  # inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
8
  # outputs="text")
9
  # iface.launch()
 
 
 
10
  from transformers import pipeline
11
  import gradio as gr
12
 
 
18
 
19
  with gr.Blocks() as demo:
20
  textbox = gr.Textbox(placeholder="Enter what you need to summarize", lines = 4)
21
+ gr.Interface(fn=predict, inputs=textbox, outputs='text')
22
 
23
  demo.launch()