lucas-w commited on
Commit
8e73101
1 Parent(s): 3107216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -1,13 +1,18 @@
1
  import gradio as gr
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",
 
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",