LLM4SciLit / app.py
tommymarto's picture
first attempt to hf spaces
d4bde9f
raw
history blame
301 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "! aaaaaaaa !"
def echo(message, history):
return "Si"
app = gr.Interface(fn=greet, inputs="text", outputs="text")
app = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Truth bot")
app.launch(share=True)