Update app.py
Browse files
app.py
CHANGED
@@ -180,22 +180,23 @@ def create_interface():
|
|
180 |
<h3>Interact with a chatbot using text or image inputs</h3>
|
181 |
</div>
|
182 |
""")
|
183 |
-
|
184 |
-
# Add a description
|
185 |
-
gr.
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
199 |
|
200 |
with gr.Row():
|
201 |
openai_api_key = gr.Textbox(label="Enter OpenAI API Key", type="password", placeholder="sk-...", interactive=True)
|
|
|
180 |
<h3>Interact with a chatbot using text or image inputs</h3>
|
181 |
</div>
|
182 |
""")
|
183 |
+
|
184 |
+
# Add a description with an expandable accordion
|
185 |
+
with gr.Accordion("Click to expand for details", open=False):
|
186 |
+
gr.Markdown("""
|
187 |
+
### Description:
|
188 |
+
This is a multimodal chatbot that can handle both text and image inputs.
|
189 |
+
- You can ask questions or provide text, and the assistant will respond.
|
190 |
+
- You can also upload an image, and the assistant will process it and answer questions about the image.
|
191 |
+
- Enter your OpenAI API key to start interacting with the model.
|
192 |
+
- You can use the 'Clear History' button to remove the conversation history.
|
193 |
+
- "o1" is for image chat and "o3-mini" is for text chat.
|
194 |
+
### Reasoning Effort:
|
195 |
+
The reasoning effort controls how complex or detailed the assistant's answers should be.
|
196 |
+
- **Low**: Provides quick, concise answers with minimal reasoning or details.
|
197 |
+
- **Medium**: Offers a balanced response with a reasonable level of detail and thought.
|
198 |
+
- **High**: Produces more detailed, analytical, or thoughtful responses, requiring deeper reasoning.
|
199 |
+
""")
|
200 |
|
201 |
with gr.Row():
|
202 |
openai_api_key = gr.Textbox(label="Enter OpenAI API Key", type="password", placeholder="sk-...", interactive=True)
|