Spaces:
Runtime error
Runtime error
Commit
·
bad025d
1
Parent(s):
07e0994
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,11 @@ css = """
|
|
45 |
margin-left: auto;
|
46 |
margin-right: auto;
|
47 |
}
|
|
|
|
|
|
|
|
|
|
|
48 |
"""
|
49 |
|
50 |
with gr.Blocks(css=css) as demo:
|
@@ -73,18 +78,18 @@ with gr.Blocks(css=css) as demo:
|
|
73 |
chatbot = gr.Chatbot([], show_label=False, elem_id="chatbot").style(height="auto")
|
74 |
|
75 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
76 |
-
with gr.Column(scale=0.
|
77 |
txt = gr.Textbox(
|
78 |
show_label=False,
|
79 |
placeholder="Type and press enter, or record your response...",
|
80 |
).style(container=False)
|
81 |
-
with gr.Column(scale=0.
|
82 |
send = gr.Button("Send")
|
83 |
|
84 |
with gr.Row(elem_id="audio-container").style(mobile_collapse=False, equal_height=True):
|
85 |
-
with gr.Column(scale=0.
|
86 |
record = gr.Audio(source="microphone", type="filepath", show_label=False).style(container=False)
|
87 |
-
with gr.Column(scale=0.
|
88 |
speech = gr.Button("Submit speech")
|
89 |
|
90 |
speech.click(transcribe, inputs=record, outputs=txt)
|
|
|
45 |
margin-left: auto;
|
46 |
margin-right: auto;
|
47 |
}
|
48 |
+
#prompt-container {
|
49 |
+
margin-bottom: 15px;
|
50 |
+
margin-left: auto;
|
51 |
+
margin-right: auto;
|
52 |
+
}
|
53 |
"""
|
54 |
|
55 |
with gr.Blocks(css=css) as demo:
|
|
|
78 |
chatbot = gr.Chatbot([], show_label=False, elem_id="chatbot").style(height="auto")
|
79 |
|
80 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
81 |
+
with gr.Column(scale=0.8):
|
82 |
txt = gr.Textbox(
|
83 |
show_label=False,
|
84 |
placeholder="Type and press enter, or record your response...",
|
85 |
).style(container=False)
|
86 |
+
with gr.Column(scale=0.2, min_width=0):
|
87 |
send = gr.Button("Send")
|
88 |
|
89 |
with gr.Row(elem_id="audio-container").style(mobile_collapse=False, equal_height=True):
|
90 |
+
with gr.Column(scale=0.8):
|
91 |
record = gr.Audio(source="microphone", type="filepath", show_label=False).style(container=False)
|
92 |
+
with gr.Column(scale=0.2, min_width=0):
|
93 |
speech = gr.Button("Submit speech")
|
94 |
|
95 |
speech.click(transcribe, inputs=record, outputs=txt)
|