Spaces:
Sleeping
Sleeping
File size: 400 Bytes
6e1f430 a63c8ad 6e1f430 3ced857 6e1f430 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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() |