lucas-w's picture
Update app.py
1c9fe53
raw
history blame
851 Bytes
import gradio as gr
textbox = gr.Textbox(
container=False,
show_label=False,
placeholder='Type a message...',
scale=10,
)
gr.Examples(
examples=[
'Hello there! How are you doing?',
'Can you explain briefly to me what is the Python programming language?',
'Explain the plot of Cinderella in a sentence.',
'How many hours does it take a man to eat a Helicopter?',
"Write a 100-word article on 'Benefits of Open-Source in AI research'",
],
inputs=textbox,
outputs=[textbox, chatbot],
fn=process_example,
cache_examples=True,
)
# Load the Gradio interface
gr.Interface.load("dmis-lab/biobert-large-cased-v1.1-squad",
examples=examples).launch()