ncoop57 commited on
Commit
637fdc5
1 Parent(s): 19d0356

Add temp returning content

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,7 +1,13 @@
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
  def greet(name):
4
+ res = {
5
+ "content": event["body"],
6
+ "questions": ["what is life?", "hi?"],
7
+ "answers": ["42", "hola!"]
8
+ }
9
+ return res
10
+ #"Hello " + name + "!!"
11
 
12
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
13
  iface.launch()