Spaces:
Build error
Build error
updated examples
Browse files- app_dialogue.py +11 -11
app_dialogue.py
CHANGED
|
@@ -450,17 +450,6 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
|
|
| 450 |
chat = model_inference(message, [], "greedy", 3, 1.0, 0, 512, 16, 1.0, 1.0, 50, 0.95, 0.95)
|
| 451 |
return '', chat
|
| 452 |
|
| 453 |
-
gr.Examples(examples=[
|
| 454 |
-
[f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
|
| 455 |
-
[f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
|
| 456 |
-
["m4-dialogue/images/bear.jpg", "Describe this image"],
|
| 457 |
-
],
|
| 458 |
-
inputs=[textbox],
|
| 459 |
-
outputs=[textbox, chatbot],
|
| 460 |
-
fn=process_example,
|
| 461 |
-
cache_examples=True,
|
| 462 |
-
)
|
| 463 |
-
|
| 464 |
#gr.Examples(
|
| 465 |
# examples=[
|
| 466 |
# [
|
|
@@ -581,5 +570,16 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
|
|
| 581 |
],
|
| 582 |
)
|
| 583 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 584 |
demo.queue()
|
| 585 |
demo.launch()
|
|
|
|
| 450 |
chat = model_inference(message, [], "greedy", 3, 1.0, 0, 512, 16, 1.0, 1.0, 50, 0.95, 0.95)
|
| 451 |
return '', chat
|
| 452 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
#gr.Examples(
|
| 454 |
# examples=[
|
| 455 |
# [
|
|
|
|
| 570 |
],
|
| 571 |
)
|
| 572 |
|
| 573 |
+
gr.Examples(examples=[
|
| 574 |
+
[f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
|
| 575 |
+
[f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
|
| 576 |
+
["m4-dialogue/images/bear.jpg", "Describe this image"],
|
| 577 |
+
],
|
| 578 |
+
inputs=[textbox],
|
| 579 |
+
outputs=[textbox, chatbot],
|
| 580 |
+
fn=process_example,
|
| 581 |
+
cache_examples=True,
|
| 582 |
+
)
|
| 583 |
+
|
| 584 |
demo.queue()
|
| 585 |
demo.launch()
|