Spaces:
Runtime error
Runtime error
import gradio | |
from transformers import AutoTokenizer | |
from transformers import OpenAIGPTLMHeadModel | |
def work(inp_text): | |
out = "hello" | |
return out | |
demo = gradio.Interface( | |
fn=work, | |
inputs=["text"], | |
outputs=["text"], | |
) | |
demo.launch() |