Spaces:
Runtime error
Runtime error
chore: Remove unused variables
Browse files
app.py
CHANGED
@@ -1,12 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
from util import summarizer, textproc
|
4 |
-
|
5 |
-
summary_options = ["Abstract", "Background", "Claims"]
|
6 |
-
model_names = ["google/bigbird-pegasus-large-bigpatent",
|
7 |
-
"huggingface/sshleifer/distilbart-cnn-12-6",
|
8 |
-
"huggingface/facebook/bart-large-cnn",
|
9 |
-
"huggingface/google/pegasus-xsum"]
|
10 |
|
11 |
model_collection = summarizer.init_models()
|
12 |
patent_summarizer = summarizer.PatentSummarizer(model_collection)
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
from util import summarizer, textproc
|
4 |
+
from util.examples import entries
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
model_collection = summarizer.init_models()
|
7 |
patent_summarizer = summarizer.PatentSummarizer(model_collection)
|