mutagi commited on
Commit
f451f0b
·
verified ·
1 Parent(s): 678d3dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -3
app.py CHANGED
@@ -1,7 +1,23 @@
 
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
2
 
3
- def greet(name):
4
- return f"Hello, {name}!"
 
 
 
 
 
 
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  demo.launch(share=True)
 
1
+
2
  import gradio as gr
3
+ import pandas as pd
4
+
5
+ import matplotlib.pyplot as plt
6
+ import numpy as np
7
+
8
+ import time
9
+
10
+ def show_inputs(text, image, audio):
11
+ return f"You said: {text}", image, audio
12
 
13
+ demo = gr.Interface(
14
+ fn=show_inputs,
15
+ inputs=[
16
+ gr.Textbox(label="Your Text"),
17
+ gr.Image(label="Upload Image"),
18
+ gr.Audio(label="Upload Audio")
19
+ ],
20
+ outputs=["text", "image", "audio"]
21
+ )
22
 
 
23
  demo.launch(share=True)