omar / app.py
not-lain's picture
Update app.py
3ced857 verified
raw history blame
No virus
400 Bytes
# now to create an interface with gradio
import gradio as gr
from gradio_space_ci import enable_space_ci
enable_space_ci()
# a function that uses the pipeline
# takes text as input and passes it to the pipeline
def chat(text):
return "hi "+text
# fucntion , input of type text , output of type text
demo = gr.Interface(chat , "text" , "text" )
demo.launch()