Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,26 +4,6 @@ import gradio as gr
|
|
4 |
|
5 |
model = GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5").to('cpu')
|
6 |
|
7 |
-
text1 = """
|
8 |
-
"I recently purchased the Sony WH-1000XM4 Wireless Noise-Canceling Headphones from Amazon and I must say, I'm thoroughly impressed. The package arrived in New York within 2 days, thanks to Amazon Prime's expedited shipping.
|
9 |
-
|
10 |
-
The headphones themselves are remarkable. The noise-canceling feature works like a charm in the bustling city environment, and the 30-hour battery life means I don't have to charge them every day. Connecting them to my Samsung Galaxy S21 was a breeze, and the sound quality is second to none.
|
11 |
-
|
12 |
-
I also appreciated the customer service from Amazon when I had a question about the warranty. They responded within an hour and provided all the information I needed.
|
13 |
-
|
14 |
-
However, the headphones did not come with a hard case, which was listed in the product description. I contacted Amazon, and they offered a 10% discount on my next purchase as an apology.
|
15 |
-
|
16 |
-
Overall, I'd give these headphones a 4.5/5 rating and highly recommend them to anyone looking for top-notch quality in both product and service."""
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
open_ie_examples = [
|
21 |
-
[
|
22 |
-
f"Extract all brands, please",
|
23 |
-
text1,
|
24 |
-
0.5,
|
25 |
-
False
|
26 |
-
]]
|
27 |
|
28 |
def merge_entities(entities):
|
29 |
if not entities:
|
|
|
4 |
|
5 |
model = GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5").to('cpu')
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
def merge_entities(entities):
|
9 |
if not entities:
|