Spaces:
Runtime error
Runtime error
tommymarto
commited on
Commit
•
9abaf0d
1
Parent(s):
00e04a3
first attempt to hf spaces
Browse files
app.py
CHANGED
@@ -3,5 +3,9 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "! aaaaaaaa !"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
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)
|