Pendrokar commited on
Commit
baa69dc
·
verified ·
1 Parent(s): 4fb5c2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,12 +1,14 @@
1
  import gradio as gr
2
- import camxes
3
  import subprocess
4
 
5
  subprocess.run(['git', 'clone', 'https://github.com/teleological/camxes-py', './'])
6
  time.sleep(3)
7
 
8
- def greet(name):
9
- return camxes.parse(name)
 
 
 
10
 
11
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
12
  demo.launch()
 
1
  import gradio as gr
 
2
  import subprocess
3
 
4
  subprocess.run(['git', 'clone', 'https://github.com/teleological/camxes-py', './'])
5
  time.sleep(3)
6
 
7
+ #import camxes
8
+
9
+ def greet(lojban):
10
+ #return camxes.parse(name)
11
+ return subprocess.run(['camxes.py', f'"${lojban}"'])
12
 
13
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
14
  demo.launch()