Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,11 +75,10 @@ with gr.Blocks() as demo:
|
|
| 75 |
# Creating a column with a scale of 2
|
| 76 |
with gr.Row():
|
| 77 |
# Adding image
|
| 78 |
-
image = gr.UploadButton("π", file_types=["image"])
|
| 79 |
# Creating a column with a scale of 2
|
| 80 |
with gr.Row():
|
| 81 |
# Add audio
|
| 82 |
-
audio_upload = gr.UploadButton("π", file_types=["audio"])
|
| 83 |
audio_mic = gr.Audio(
|
| 84 |
source="microphone", type="filepath", format="mp3"
|
| 85 |
)
|
|
@@ -91,6 +90,23 @@ with gr.Blocks() as demo:
|
|
| 91 |
avatar_images=("π§", "π€"),
|
| 92 |
height=550,
|
| 93 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
with gr.Row():
|
| 95 |
# Adding a Button
|
| 96 |
submit = gr.Button()
|
|
|
|
| 75 |
# Creating a column with a scale of 2
|
| 76 |
with gr.Row():
|
| 77 |
# Adding image
|
| 78 |
+
image, audio_upload= gr.UploadButton("π", file_types=["image", "audio"])
|
| 79 |
# Creating a column with a scale of 2
|
| 80 |
with gr.Row():
|
| 81 |
# Add audio
|
|
|
|
| 82 |
audio_mic = gr.Audio(
|
| 83 |
source="microphone", type="filepath", format="mp3"
|
| 84 |
)
|
|
|
|
| 90 |
avatar_images=("π§", "π€"),
|
| 91 |
height=550,
|
| 92 |
)
|
| 93 |
+
|
| 94 |
+
# with gr.Box():
|
| 95 |
+
with gr.Row():
|
| 96 |
+
# Adding a Textbox with a placeholder "write prompt"
|
| 97 |
+
prompt = gr.Textbox(
|
| 98 |
+
placeholder="Enter text, or upload an image or audio", lines=2, label="Query", value=None
|
| 99 |
+
)
|
| 100 |
+
# Creating a column with a scale of 2
|
| 101 |
+
# with gr.Row():
|
| 102 |
+
# Adding image
|
| 103 |
+
image, audio_upload= gr.UploadButton("π", file_types=["image", "audio"])
|
| 104 |
+
# Creating a column with a scale of 2
|
| 105 |
+
# with gr.Row():
|
| 106 |
+
# Add audio
|
| 107 |
+
audio_mic = gr.Audio(
|
| 108 |
+
source="microphone", type="filepath", format="mp3"
|
| 109 |
+
)
|
| 110 |
with gr.Row():
|
| 111 |
# Adding a Button
|
| 112 |
submit = gr.Button()
|