Spaces:
Runtime error
Runtime error
File size: 253 Bytes
3bdb9f0 dfc3b85 d942439 4d5ed6a d942439 3bdb9f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |