Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,13 @@ import gradio as gr
|
|
2 |
|
3 |
# Define the examples
|
4 |
examples = [
|
5 |
-
"
|
|
|
|
|
|
|
|
|
6 |
]
|
7 |
|
8 |
-
# Define the model dictionary
|
9 |
-
model_dict = {
|
10 |
-
"inputs": "text",
|
11 |
-
"outputs": "text"
|
12 |
-
}
|
13 |
-
|
14 |
# Load the Gradio interface
|
15 |
-
gr.Interface.load(
|
|
|
|
2 |
|
3 |
# Define the examples
|
4 |
examples = [
|
5 |
+
"What is the most common cause of heart disease?",
|
6 |
+
"Can you explain the symptoms of diabetes?",
|
7 |
+
"What are the treatment options for cancer?",
|
8 |
+
"How does vaccination work?",
|
9 |
+
"Explain the process of photosynthesis.",
|
10 |
]
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Load the Gradio interface
|
13 |
+
gr.Interface.load("dmis-lab/biobert-large-cased-v1.1-squad",
|
14 |
+
examples=examples).launch()
|