Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
examples
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
]
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Load the Gradio interface
|
13 |
gr.Interface.load("dmis-lab/biobert-large-cased-v1.1-squad",
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
gr.Examples(
|
4 |
+
examples=[
|
5 |
+
'Hello there! How are you doing?',
|
6 |
+
'Can you explain briefly to me what is the Python programming language?',
|
7 |
+
'Explain the plot of Cinderella in a sentence.',
|
8 |
+
'How many hours does it take a man to eat a Helicopter?',
|
9 |
+
"Write a 100-word article on 'Benefits of Open-Source in AI research'",
|
10 |
+
],
|
11 |
+
inputs=textbox,
|
12 |
+
outputs=[textbox, chatbot],
|
13 |
+
fn=process_example,
|
14 |
+
cache_examples=True,
|
15 |
+
)
|
16 |
|
17 |
# Load the Gradio interface
|
18 |
gr.Interface.load("dmis-lab/biobert-large-cased-v1.1-squad",
|