remove useless options
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def sendcommand(function,args):
|
|
38 |
process = subprocess.run(["ghc", "Challenges.hs", "-e", f'{function} {args}' ], check=True, capture_output=True)
|
39 |
return process.stdout.decode(sys.stdout.encoding).strip()
|
40 |
|
41 |
-
commandint = gr.Interface(fn=sendcommand, inputs=['text','text'], outputs='text', description="sends a function call to Challenges.hs")
|
42 |
|
43 |
def runtests():
|
44 |
output = subprocess.run(["runghc", "../Tests.hs"],check=True,capture_output=True).stderr.decode(sys.stdout.encoding).strip()
|
@@ -46,7 +46,7 @@ def runtests():
|
|
46 |
return "All tests passed"
|
47 |
return output
|
48 |
|
49 |
-
testint = gr.Interface(fn=runtests, inputs=None, outputs='text', description="runs automated tests from Tests.hs")
|
50 |
|
51 |
-
demo = gr.TabbedInterface([showpuzzint,genint,shufint
|
52 |
demo.launch()
|
|
|
38 |
process = subprocess.run(["ghc", "Challenges.hs", "-e", f'{function} {args}' ], check=True, capture_output=True)
|
39 |
return process.stdout.decode(sys.stdout.encoding).strip()
|
40 |
|
41 |
+
commandint = gr.Interface(fn=sendcommand, inputs=['text','text'], outputs='text', description="sends a function call to Challenges.hs (will not work on huggingface)")
|
42 |
|
43 |
def runtests():
|
44 |
output = subprocess.run(["runghc", "../Tests.hs"],check=True,capture_output=True).stderr.decode(sys.stdout.encoding).strip()
|
|
|
46 |
return "All tests passed"
|
47 |
return output
|
48 |
|
49 |
+
testint = gr.Interface(fn=runtests, inputs=None, outputs='text', description="runs automated tests from Tests.hs (will not work on huggingface)")
|
50 |
|
51 |
+
demo = gr.TabbedInterface([showpuzzint,genint,shufint],["visualise","generate","shuffle"],title="comp2209 Tools")
|
52 |
demo.launch()
|