Ken Lin commited on
Commit
e31beca
1 Parent(s): dc75da7

Application file

Browse files
Files changed (2) hide show
  1. app.py +11 -1
  2. flagged/log.csv +2 -0
app.py CHANGED
@@ -1,7 +1,17 @@
1
  import gradio as gr
2
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ title = "Musicalization System of Painting"
4
+ description = "Pui Ching Middle School: Musicalization System of Painting Demo"
5
+
6
  def greet(name):
7
  return "Hello " + name + "!!"
8
 
9
+ iface = gr.Interface(
10
+ fn=greet,
11
+ title=title,
12
+ description=description,
13
+ #fn=greet,
14
+ inputs=gr.Image(),
15
+ outputs=gr.Audio())
16
+
17
  iface.launch()
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name,output,flag,username,timestamp
2
+ ,,,,2023-12-12 18:41:05.166403