Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import warnings
|
|
| 3 |
warnings.filterwarnings("ignore")
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
-
from
|
| 7 |
|
| 8 |
|
| 9 |
# Image and text inputs for the interface
|
|
@@ -28,7 +28,7 @@ article = "<p style='text-align: center'><a href='https://github.com/OpenBMB/Min
|
|
| 28 |
|
| 29 |
# Launch the interface
|
| 30 |
interface = gr.Interface(
|
| 31 |
-
fn=
|
| 32 |
inputs=[image, question],
|
| 33 |
outputs=answer,
|
| 34 |
examples=examples,
|
|
|
|
| 3 |
warnings.filterwarnings("ignore")
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
+
from src.app.response import describe_image
|
| 7 |
|
| 8 |
|
| 9 |
# Image and text inputs for the interface
|
|
|
|
| 28 |
|
| 29 |
# Launch the interface
|
| 30 |
interface = gr.Interface(
|
| 31 |
+
fn=describe_image,
|
| 32 |
inputs=[image, question],
|
| 33 |
outputs=answer,
|
| 34 |
examples=examples,
|