Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 125 |
-
|
| 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(
|