Navyabhat commited on
Commit
b73cd95
·
verified ·
1 Parent(s): 4fdc15c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -121,18 +121,15 @@ with gr.Blocks(theme=seafoam) as demo:
121
  placeholder="Enter text, or upload an image or audio", lines=2, label="Query", value=None, scale = 4
122
  )
123
 
124
- image= gr.UploadButton(
125
- "Upload image/audio", file_types=["image", "audio"]
126
- )
127
- image=Path(str( image.name))
128
- audio_upload= image
129
 
130
  audio_mic = gr.Audio(
131
  source="microphone", type="filepath", format="mp3"
132
  )
133
  with gr.Row():
134
  # Adding a Button
135
- submit = gr.Button(value = "Submit")
136
  clear = gr.Button(value="Clear")
137
 
138
  submit.click(
 
121
  placeholder="Enter text, or upload an image or audio", lines=2, label="Query", value=None, scale = 4
122
  )
123
 
124
+ image = gr.Image(type="filepath", value=None)
125
+ audio_upload = gr.Audio(source="upload", type="filepath")
 
 
 
126
 
127
  audio_mic = gr.Audio(
128
  source="microphone", type="filepath", format="mp3"
129
  )
130
  with gr.Row():
131
  # Adding a Button
132
+ submit = gr.Button(value = "Submit", variant="primary")
133
  clear = gr.Button(value="Clear")
134
 
135
  submit.click(