Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,41 +77,43 @@ with gr.Blocks() as demo:
|
|
| 77 |
6. Finetuned Model: [GunaKoppula/Llava-Phi2](https://huggingface.co/GunaKoppula/Llava-Phi2)
|
| 78 |
"""
|
| 79 |
)
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
with gr.Box():
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
avatar_images=("π§", "π€"),
|
| 86 |
-
height=550,
|
| 87 |
-
)
|
| 88 |
|
| 89 |
-
with gr.Row():
|
| 90 |
-
with gr.Column(scale=4):
|
| 91 |
-
# Creating a column with a scale of 6
|
| 92 |
-
with gr.Box():
|
| 93 |
with gr.Row():
|
| 94 |
# Adding a Textbox with a placeholder "write prompt"
|
| 95 |
prompt = gr.Textbox(
|
| 96 |
placeholder="Enter Prompt", lines=2, label="Query", value=None
|
| 97 |
)
|
| 98 |
# Creating a column with a scale of 2
|
| 99 |
-
|
| 100 |
-
with gr.
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
# Creating a column with a scale of 2
|
| 105 |
-
with gr.Column():
|
| 106 |
-
# Add audio
|
| 107 |
-
# audio_upload = gr.Audio(source="upload", type="filepath")
|
| 108 |
-
# audio_mic = gr.Audio(source="microphone", type="filepath", format="mp3")
|
| 109 |
-
audio_upload = gr.Audio(label="Upload Audio", type="filepath", interactive=True)
|
| 110 |
-
|
| 111 |
with gr.Row():
|
| 112 |
-
#
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
submit.click(
|
| 117 |
add_content,
|
|
|
|
| 77 |
6. Finetuned Model: [GunaKoppula/Llava-Phi2](https://huggingface.co/GunaKoppula/Llava-Phi2)
|
| 78 |
"""
|
| 79 |
)
|
| 80 |
+
|
| 81 |
+
with gr.Row(scale=8):
|
| 82 |
+
with gr.Box():
|
| 83 |
+
with gr.Row():
|
| 84 |
+
chatbot = gr.Chatbot(
|
| 85 |
+
avatar_images=("π§", "π€"),
|
| 86 |
+
height=550,
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
with gr.Row():
|
| 90 |
+
with gr.Column(scale=4):
|
| 91 |
+
# Creating a column with a scale of 6
|
| 92 |
with gr.Box():
|
| 93 |
+
|
| 94 |
+
with gr.Column():
|
|
|
|
|
|
|
|
|
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
with gr.Row():
|
| 97 |
# Adding a Textbox with a placeholder "write prompt"
|
| 98 |
prompt = gr.Textbox(
|
| 99 |
placeholder="Enter Prompt", lines=2, label="Query", value=None
|
| 100 |
)
|
| 101 |
# Creating a column with a scale of 2
|
| 102 |
+
|
| 103 |
+
with gr.Row():
|
| 104 |
+
# Adding image
|
| 105 |
+
image = gr.Image(type="filepath", value=None)
|
| 106 |
+
# Creating a column with a scale of 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
with gr.Row():
|
| 108 |
+
# Add audio
|
| 109 |
+
# audio_upload = gr.Audio(source="upload", type="filepath")
|
| 110 |
+
# audio_mic = gr.Audio(source="microphone", type="filepath", format="mp3")
|
| 111 |
+
audio_upload = gr.Audio(label="Upload Audio", type="filepath", interactive=True)
|
| 112 |
+
|
| 113 |
+
with gr.Column():
|
| 114 |
+
# Adding a Button
|
| 115 |
+
submit = gr.Button()
|
| 116 |
+
clear = gr.Button(value="Clear")
|
| 117 |
|
| 118 |
submit.click(
|
| 119 |
add_content,
|