Spaces:
Sleeping
Sleeping
olpa's fork
Browse files
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/
|
| 5 |
time.sleep(3)
|
| 6 |
-
subprocess.run(['2to3', './camxes-py/camxes.py', '-w'])
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
def greet(lojban):
|
| 11 |
-
|
| 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()
|