Pendrokar's picture
Update app.py
29786d1 verified
raw
history blame
347 Bytes
import gradio as gr
import subprocess, time
subprocess.run(['git', 'clone', 'https://github.com/teleological/camxes-py'])
time.sleep(3)
#import camxes
def greet(lojban):
#return camxes.parse(name)
return subprocess.run(['./camxes-py/camxes.py', f'"{lojban}"'])
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()