Sasha Rush commited on
Commit
91e5db5
1 Parent(s): ca8e17b
Files changed (2) hide show
  1. app.py +5 -5
  2. packages.txt +1 -0
app.py CHANGED
@@ -1,7 +1,5 @@
1
  import os
2
  import sys
3
- sys.path.insert(0, "/home/srush/Projects/MiniChain/venv/lib/python3.10/site-packages")
4
- print(sys.path)
5
  import gradio as gr
6
  from dataclasses import dataclass
7
  from chalk import *
@@ -390,11 +388,13 @@ The game takes place on a hexagonal grid with walls. Even rows are labeled (0,0)
390
  # * Give code examples that solve similar mazes.
391
  # * Give examples to explain the reasoning process
392
 
 
 
393
  # For example you might want to tell it how the moves work
394
 
395
  change_str = {change_str}
396
 
397
- # Or make up a clear implementation for the move function
398
 
399
  def move(board, action, old_pos):
400
  # ACTIONS (must be legal)
@@ -408,7 +408,7 @@ def move(board, action, old_pos):
408
  assert pos == board.key
409
  return pos
410
 
411
- # You can test your code on the right side.
412
 
413
  # Finally use %GAME% to inject the game description above.
414
  """)
@@ -490,7 +490,7 @@ def move(board, action, old_pos):
490
 
491
 
492
 
493
- app.queue().launch()
494
 
495
 
496
  # f = io.StringIO()
 
1
  import os
2
  import sys
 
 
3
  import gradio as gr
4
  from dataclasses import dataclass
5
  from chalk import *
 
388
  # * Give code examples that solve similar mazes.
389
  # * Give examples to explain the reasoning process
390
 
391
+ # You might want to do this in a separate editor and paset in.
392
+
393
  # For example you might want to tell it how the moves work
394
 
395
  change_str = {change_str}
396
 
397
+ # Or make up a clear implementation for the move function.
398
 
399
  def move(board, action, old_pos):
400
  # ACTIONS (must be legal)
 
408
  assert pos == board.key
409
  return pos
410
 
411
+ # You can also test your code on the right side to make few-shot examples.
412
 
413
  # Finally use %GAME% to inject the game description above.
414
  """)
 
490
 
491
 
492
 
493
+ app.queue().launch(share=True)
494
 
495
 
496
  # f = io.StringIO()
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ libcairo2-dev