Pendrokar commited on
Commit
031794e
·
verified ·
1 Parent(s): 4bda85e

olpa's fork

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