alperugurcan commited on
Commit
1b4bb0c
·
verified ·
1 Parent(s): c21c1ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -1,13 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- """Untitled13.ipynb
3
-
4
- Automatically generated by Colab.
5
-
6
- Original file is located at
7
- https://colab.research.google.com/drive/1SYj-2alDdnD1ENpsJmaTQaaZhIDP7U0E
8
- """
9
-
10
- !pip install -q transformers
11
 
12
  from transformers import pipeline
13
 
@@ -26,7 +17,7 @@ def ner(text):
26
  output = ner_pipeline(text, aggregation_strategy = "simple")
27
  return {"text": text, "entities": output}
28
 
29
- !pip install -q gradio
30
 
31
  import gradio as gr
32
 
@@ -42,5 +33,4 @@ demo = gr.Interface(
42
  examples=examples
43
  )
44
 
45
- demo.launch(share=True)
46
-
 
1
+ #!pip install -q transformers
 
 
 
 
 
 
 
 
 
2
 
3
  from transformers import pipeline
4
 
 
17
  output = ner_pipeline(text, aggregation_strategy = "simple")
18
  return {"text": text, "entities": output}
19
 
20
+ #!pip install -q gradio
21
 
22
  import gradio as gr
23
 
 
33
  examples=examples
34
  )
35
 
36
+ demo.launch(share=True)