tommymarto commited on
Commit
9abaf0d
1 Parent(s): 00e04a3

first attempt to hf spaces

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -3,5 +3,9 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "! aaaaaaaa !"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "! aaaaaaaa !"
5
 
6
+ def echo(message, history):
7
+ return message
8
+
9
+ app = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ app = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot")
11
+ app.launch(share=True)