Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,6 @@
|
|
| 3 |
# gr.load("models/DevBM/t5-large-squad").launch()
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
-
# Load your model
|
| 7 |
-
model = gr.load("models/DevBM/t5-large-squad")
|
| 8 |
|
| 9 |
# Define the input and output interfaces
|
| 10 |
inputs = gr.inputs.Textbox(label="Question")
|
|
@@ -17,5 +15,8 @@ examples = [
|
|
| 17 |
["What is the largest planet in our solar system?", ""]
|
| 18 |
]
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Launch the Gradio interface with examples
|
| 21 |
gr.Interface(fn=model.predict, inputs=inputs, outputs=output, examples=examples).launch()
|
|
|
|
| 3 |
# gr.load("models/DevBM/t5-large-squad").launch()
|
| 4 |
import gradio as gr
|
| 5 |
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Define the input and output interfaces
|
| 8 |
inputs = gr.inputs.Textbox(label="Question")
|
|
|
|
| 15 |
["What is the largest planet in our solar system?", ""]
|
| 16 |
]
|
| 17 |
|
| 18 |
+
# Load your model
|
| 19 |
+
model = gr.load("models/DevBM/t5-large-squad")
|
| 20 |
+
|
| 21 |
# Launch the Gradio interface with examples
|
| 22 |
gr.Interface(fn=model.predict, inputs=inputs, outputs=output, examples=examples).launch()
|