Spaces:
Sleeping
Sleeping
peterpeter8585
commited on
Commit
•
5e8ba50
1
Parent(s):
955066c
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def respond1(
|
|
45 |
|
46 |
response += token
|
47 |
yield response
|
48 |
-
def respond0(multimodal_input,
|
49 |
if password==password1:
|
50 |
|
51 |
images = multimodal_input["files"]
|
@@ -464,7 +464,7 @@ ae= gr.ChatInterface(
|
|
464 |
)
|
465 |
a7=gr.Interface(
|
466 |
respond0,
|
467 |
-
inputs=[gr.MultimodalTextbox(file_types=["image"], show_label=False)],
|
468 |
outputs="text",
|
469 |
title="IDEFICS2-8B DPO",
|
470 |
description="Try IDEFICS2-8B fine-tuned using direct preference optimization (DPO) in this demo. Learn more about vision language model DPO integration of TRL [here](https://huggingface.co/blog/dpo_vlm).",
|
|
|
45 |
|
46 |
response += token
|
47 |
yield response
|
48 |
+
def respond0(multimodal_input,password):
|
49 |
if password==password1:
|
50 |
|
51 |
images = multimodal_input["files"]
|
|
|
464 |
)
|
465 |
a7=gr.Interface(
|
466 |
respond0,
|
467 |
+
inputs=[gr.MultimodalTextbox(file_types=["image"], show_label=False), gr.Textbox()],
|
468 |
outputs="text",
|
469 |
title="IDEFICS2-8B DPO",
|
470 |
description="Try IDEFICS2-8B fine-tuned using direct preference optimization (DPO) in this demo. Learn more about vision language model DPO integration of TRL [here](https://huggingface.co/blog/dpo_vlm).",
|