chansung commited on
Commit
cb9bbbd
·
1 Parent(s): 435eeff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -55,16 +55,16 @@ demoInterface = gr.Interface(
55
  allow_flagging=False,
56
  )
57
 
58
- io2 = gr.Interface(
59
- lambda x, y, z: "flute.wav",
60
- [
61
- gr.Slider(label="pitch"),
62
- gr.Slider(label="loudness"),
63
- gr.Audio(label="base audio file (optional)"),
64
- ],
65
- gr.Audio(),
66
- )
67
 
68
  gr.TabbedInterface(
69
- [demoInterface, io2], ["Try-out", "Deployment"]
70
  ).launch(enable_queue=True)
 
55
  allow_flagging=False,
56
  )
57
 
58
+ with gr.Blocks() as demo:
59
+ gr.Markdown(
60
+ """
61
+ # Hello World!
62
+ Start typing below to see the output.
63
+ """)
64
+ inp = gr.Textbox(placeholder="What is your name?")
65
+ out = gr.Textbox()
66
+ inp.change(welcome, inp, out)
67
 
68
  gr.TabbedInterface(
69
+ [demoInterface, demo], ["Try-out", "Deployment"]
70
  ).launch(enable_queue=True)