Spaces:
Runtime error
Runtime error
Commit
·
b896898
1
Parent(s):
7c71448
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,14 +105,19 @@ def formatted_message(audio_class, human_input):
|
|
| 105 |
|
| 106 |
return output
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
gr.
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
return output
|
| 107 |
|
| 108 |
+
with gr.Blocks() as demo:
|
| 109 |
+
gr.HTML("""
|
| 110 |
+
<div style='text-align: center; width:100%; margin: auto;'>
|
| 111 |
+
<img src='./logo.png' alt='anychat' width='250px' />
|
| 112 |
+
<h3>Non-Human entities have many things to say, listen to them!</h3>
|
| 113 |
+
</div>
|
| 114 |
+
""")
|
| 115 |
+
with gr.Row():
|
| 116 |
+
with gr.Column():
|
| 117 |
+
aud = gr.Audio(source="upload", type="filepath", label="Your audio"),
|
| 118 |
+
inp = gr.Textbox()
|
| 119 |
+
out = gr.Textbox()
|
| 120 |
+
btn = gr.Button("Run")
|
| 121 |
+
btn.click(fn=audio_tag, inputs=[aud, inp], outputs=out)
|
| 122 |
+
|
| 123 |
+
demo.launch()
|