shukdevdatta123 commited on
Commit
e8521d0
·
verified ·
1 Parent(s): c4ff6ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,7 +3,6 @@ import openai
3
  import base64
4
  from PIL import Image
5
  import io
6
- import openai
7
  import os
8
 
9
  # Function to send the request to OpenAI API with an image or text input
@@ -257,7 +256,7 @@ def create_interface():
257
  with gr.Row():
258
  image_input = gr.Image(label="Upload an Image", type="pil") # Image upload input
259
  input_text = gr.Textbox(label="Enter Text Question", placeholder="Ask a question or provide text", lines=2)
260
- audio_input = gr.Audio(label="Upload or Record Audio", type="file") # Audio upload or record input
261
 
262
  with gr.Row():
263
  reasoning_effort = gr.Dropdown(
 
3
  import base64
4
  from PIL import Image
5
  import io
 
6
  import os
7
 
8
  # Function to send the request to OpenAI API with an image or text input
 
256
  with gr.Row():
257
  image_input = gr.Image(label="Upload an Image", type="pil") # Image upload input
258
  input_text = gr.Textbox(label="Enter Text Question", placeholder="Ask a question or provide text", lines=2)
259
+ audio_input = gr.Audio(label="Upload or Record Audio", type="filepath") # Audio upload or record input
260
 
261
  with gr.Row():
262
  reasoning_effort = gr.Dropdown(