osanseviero HF staff commited on
Commit
b896898
1 Parent(s): 7c71448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -11
app.py CHANGED
@@ -105,14 +105,19 @@ def formatted_message(audio_class, human_input):
105
 
106
  return output
107
 
108
-
109
- demo = gr.Interface(
110
- audio_tag,
111
- [
112
- gr.Audio(source="upload", type="filepath", label="Your audio"),
113
- gr.Textbox(),
114
- ],
115
- gr.Textbox(),
116
- title="AnyChat",
117
- description="Non-Human entities have many things to say, listen to them!",
118
- ).launch(debug=True)
 
 
 
 
 
 
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()