SamuelMiller commited on
Commit
0f5ea4f
·
1 Parent(s): b7ea2f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -23
app.py CHANGED
@@ -7,29 +7,6 @@ import gradio as gr
7
  from transformers import pipeline
8
  from gradio.mix import Parallel, Series
9
 
10
- def greet(name):
11
- return "Hello " + name + "!!"
12
-
13
-
14
- io1 = gr.Interface.load('huggingface/SamuelMiller/lil_sum_sum')
15
-
16
- # from original script:
17
- # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
18
- # 'huggingface/google/pegasus-large'
19
-
20
- desc = "Summarize some text!"
21
- iface = Parallel(io1,
22
- theme='huggingface',
23
- title= 'Lil Sumsum Summarizer',
24
- description = desc,
25
- # examples=None, #replace "sample" with directory to let gradio scan through those files and give you the text
26
- inputs = gr.inputs.Textbox(lines = 10, label="Text"))
27
-
28
- iface.launch(inline = False)
29
-
30
-
31
-
32
-
33
  # >>>>>>>>>>>>>>>>>>>> Danger Below <<<<<<<<<<<<<<<<<<<<<<
34
  # Load Interfaces:
35
  s2t = gr.Interface.load('huggingface/facebook/s2t-medium-librispeech-asr')
 
7
  from transformers import pipeline
8
  from gradio.mix import Parallel, Series
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  # >>>>>>>>>>>>>>>>>>>> Danger Below <<<<<<<<<<<<<<<<<<<<<<
11
  # Load Interfaces:
12
  s2t = gr.Interface.load('huggingface/facebook/s2t-medium-librispeech-asr')