File size: 1,215 Bytes
a350303
 
9d5574c
 
 
 
 
 
 
a350303
9d5574c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import gradio as gr

def load_disclaimer():
    return """
    ⚠️ EDUCATIONAL VERSION
    This demo implements the exact model you'll build in Chapter [6] 
    of the book "Natural Language Processing on Oracle Cloud Infrastructure: Building Transformer-Based NLP Solutions Using Oracle AI and Hugging Face". 
    For production solutions, contact us.
    """

demo = gr.Interface(
    fn=process_text,
    inputs=gr.Textbox(
        label="Try French Healthcare NER (Educational Version)",
        placeholder="En cas d'infection bactérienne, le médecin recommande une antibiothérapie."
    ),
    outputs=gr.HTML(label="Entities Found"),
    title="Educational French Healthcare NER | From the book 'Natural Language Processing on Oracle Cloud Infrastructure: Building Transformer-Based NLP Solutions Using Oracle AI and Hugging Face'",
    description="""
    🎓 Educational Implementation
    - Follows Chapters 4, 5 and 6 of the book"
    - Perfect for learning NLP concepts
    - Not for production use
    
    Want to build this yourself? 
    Get the book: https://a.co/d/2soeB3b
    
    Need a production solution?
    Schedule a call: https://typica.ai/
    """,
    article=load_disclaimer()
)