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