import gradio as gr | |
import ctransformers | |
class Z(object): | |
def __init__(self): | |
pass | |
def init(self): | |
pass | |
def greet(name): | |
return f'Hi {name}' | |
z = Z() | |
z.init() | |
iface = gr.Interface(fn=z.greet, inputs="text", outputs="text") | |
iface.launch() |
import gradio as gr | |
import ctransformers | |
class Z(object): | |
def __init__(self): | |
pass | |
def init(self): | |
pass | |
def greet(name): | |
return f'Hi {name}' | |
z = Z() | |
z.init() | |
iface = gr.Interface(fn=z.greet, inputs="text", outputs="text") | |
iface.launch() |