abc / app.py
not-lain's picture
Update app.py
a319895 verified
raw
history blame contribute delete
382 Bytes
# now to create an interface with gradio
import gradio as gr
import os
print("space secret = ", os.environ["s"])
# a function that uses the pipeline
# takes text as input and passes it to the pipeline
def chat(text):
return text
# fucntion , input of type text , output of type text
demo = gr.Interface(chat , "text" , "text" )
demo.launch()