File size: 160 Bytes
597fe90
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr
import model

def encode(text):
    return model.encode(text)

iface = gr.Interface(fn=encode, inputs="text", outputs="text")
iface.launch()