ThatOneKevDev commited on
Commit
c4a1ad7
·
verified ·
1 Parent(s): 7db7be1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -9,19 +9,19 @@ import gradio as gr
9
  from transformers import pipeline
10
 
11
  # Load the Hugging Face pipeline
12
- summarizer = pipeline("summarization")
13
 
14
- # Define the function to be used in the Gradio interface
15
- def summarize_text(text):
16
- summary = summarizer(text)[0]['summary_text']
17
- return summary
18
 
19
  # Define custom CSS
20
- custom_css = """
21
- body {
22
- background-color: #a9e3cb;
23
- }
24
- .gradio-title {
25
 
26
 
27
 
 
9
  from transformers import pipeline
10
 
11
  # Load the Hugging Face pipeline
12
+ # summarizer = pipeline("summarization")
13
 
14
+ # # Define the function to be used in the Gradio interface
15
+ # def summarize_text(text):
16
+ # summary = summarizer(text)[0]['summary_text']
17
+ # return summary
18
 
19
  # Define custom CSS
20
+ # custom_css = ""
21
+ # body {
22
+ # background-color: #a9e3cb;
23
+ # }
24
+ # .gradio-title {
25
 
26
 
27