hassoudi's picture
Update app.py
9d5574c verified
raw
history blame
1.22 kB
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()
)