Spaces:
Runtime error
Runtime error
File size: 851 Bytes
f1d3f13 1c9fe53 8e73101 1c9fe53 8e73101 4c0deef 3107216 |
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 |
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()
|