Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def model_inference(image, text):
|
|
| 68 |
}
|
| 69 |
|
| 70 |
result = client(inputs)
|
| 71 |
-
|
| 72 |
generated_text = result['generated_text']
|
| 73 |
return generated_text
|
| 74 |
|
|
@@ -77,7 +77,7 @@ with gr.Blocks(css="""
|
|
| 77 |
background-color: lightgrey;
|
| 78 |
}
|
| 79 |
""") as demo:
|
| 80 |
-
gr.Markdown("##
|
| 81 |
|
| 82 |
# Create a row with two columns of equal size
|
| 83 |
with gr.Row():
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
result = client(inputs)
|
| 71 |
+
print(result)
|
| 72 |
generated_text = result['generated_text']
|
| 73 |
return generated_text
|
| 74 |
|
|
|
|
| 77 |
background-color: lightgrey;
|
| 78 |
}
|
| 79 |
""") as demo:
|
| 80 |
+
gr.Markdown("## IDEFICS2 Demo")
|
| 81 |
|
| 82 |
# Create a row with two columns of equal size
|
| 83 |
with gr.Row():
|