shukdevdatta123 commited on
Commit
8995760
·
verified ·
1 Parent(s): 1017c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
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 below the header
185
- gr.Markdown("""
186
- ### Description:
187
- This is a multimodal chatbot that can handle both text and image inputs.
188
- - You can ask questions or provide text, and the assistant will respond.
189
- - You can also upload an image, and the assistant will process it and answer questions about the image.
190
- - Enter your OpenAI API key to start interacting with the model.
191
- - You can use the 'Clear History' button to remove the conversation history.
192
- - "o1" is for image chat and "o3-mini" is for text chat.
193
- ### Reasoning Effort:
194
- The reasoning effort controls how complex or detailed the assistant's answers should be.
195
- - **Low**: Provides quick, concise answers with minimal reasoning or details.
196
- - **Medium**: Offers a balanced response with a reasonable level of detail and thought.
197
- - **High**: Produces more detailed, analytical, or thoughtful responses, requiring deeper reasoning.
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)