sloast commited on
Commit
041a80b
1 Parent(s): 5c8fc29

remove useless options

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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,commandint,testint],["visualise","generate","shuffle","run","test"],title="comp2209 Tools")
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()