Spaces:
Runtime error
Runtime error
Update the type parameter for Image input from 'file' to 'filepath' to match the accepted values
Browse files
app.py
CHANGED
|
@@ -155,8 +155,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 155 |
chat_interface = gr.Interface(
|
| 156 |
fn=main_function,
|
| 157 |
inputs=[
|
| 158 |
-
gr.
|
| 159 |
-
gr.
|
| 160 |
],
|
| 161 |
outputs='text',
|
| 162 |
live=True,
|
|
|
|
| 155 |
chat_interface = gr.Interface(
|
| 156 |
fn=main_function,
|
| 157 |
inputs=[
|
| 158 |
+
gr.components.Textbox(lines=2, label='Input'), # Update here
|
| 159 |
+
gr.components.Image(type='filepath', label='Upload Image') # Update here
|
| 160 |
],
|
| 161 |
outputs='text',
|
| 162 |
live=True,
|