merve HF staff commited on
Commit
74ee333
β€’
1 Parent(s): ff11128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ with gr.Blocks(fill_height=True) as demo:
83
  gr.Markdown("Play with [HuggingFaceM4/Idefics3-8B-Llama3](https://huggingface.co/HuggingFaceM4/Idefics3-8B-Llama3) in this demo. To get started, upload an image and text or try one of the examples.")
84
  gr.Markdown("**Disclaimer:** Idefics3 does not include an RLHF alignment stage, so it may not consistently follow prompts or handle complex tasks. However, this doesn't mean it is incapable of doing so. Adding a prefix to the assistant's response, such as Let's think step for a reasoning question or `<html>` for HTML code generation, can significantly improve the output in practice. You could also play with the parameters such as the temperature in non-greedy mode.")
85
  with gr.Column():
86
- image_input = gr.Image(label="Upload your Image", type="pil")
87
  query_input = gr.Textbox(label="Prompt")
88
  assistant_prefix = gr.Textbox(label="Assistant Prefix", placeholder="Let's think step by step.")
89
 
 
83
  gr.Markdown("Play with [HuggingFaceM4/Idefics3-8B-Llama3](https://huggingface.co/HuggingFaceM4/Idefics3-8B-Llama3) in this demo. To get started, upload an image and text or try one of the examples.")
84
  gr.Markdown("**Disclaimer:** Idefics3 does not include an RLHF alignment stage, so it may not consistently follow prompts or handle complex tasks. However, this doesn't mean it is incapable of doing so. Adding a prefix to the assistant's response, such as Let's think step for a reasoning question or `<html>` for HTML code generation, can significantly improve the output in practice. You could also play with the parameters such as the temperature in non-greedy mode.")
85
  with gr.Column():
86
+ image_input = gr.Image(label="Upload your Image", type="pil", scale=1)
87
  query_input = gr.Textbox(label="Prompt")
88
  assistant_prefix = gr.Textbox(label="Assistant Prefix", placeholder="Let's think step by step.")
89