Spaces:
Build error
Build error
update gradio
Browse files- README.md +1 -1
- gensim/sim_runner.py +7 -1
README.md
CHANGED
|
@@ -35,7 +35,7 @@ Below is an interactive demo for the simulated tabletop manipulation domain, see
|
|
| 35 |
|
| 36 |
|
| 37 |
## Note
|
| 38 |
-
For GPT-4 model, each inference costs about
|
| 39 |
|
| 40 |
|
| 41 |
## Acknowledgement
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
## Note
|
| 38 |
+
For GPT-4 model, each inference costs about $\$$0.3. For GPT-3.5 model, each inference costs about $\$$0.03.
|
| 39 |
|
| 40 |
|
| 41 |
## Acknowledgement
|
gensim/sim_runner.py
CHANGED
|
@@ -10,7 +10,7 @@ import imageio
|
|
| 10 |
from pygments import highlight
|
| 11 |
from pygments.lexers import PythonLexer
|
| 12 |
from pygments.formatters import TerminalFormatter
|
| 13 |
-
|
| 14 |
import time
|
| 15 |
import random
|
| 16 |
import json
|
|
@@ -150,6 +150,8 @@ class BuildWheel(Task):
|
|
| 150 |
except:
|
| 151 |
to_print = highlight(f"{str(traceback.format_exc())}", PythonLexer(), TerminalFormatter())
|
| 152 |
print("Task Creation Exception:", to_print)
|
|
|
|
|
|
|
| 153 |
self.task_creation_pass = False
|
| 154 |
|
| 155 |
# self.curr_task_name = self.generated_task['task-name']
|
|
@@ -188,6 +190,7 @@ class BuildWheel(Task):
|
|
| 188 |
except:
|
| 189 |
to_print = highlight(f"{str(traceback.format_exc())}", PythonLexer(), TerminalFormatter())
|
| 190 |
print("Task Creation Exception:", to_print)
|
|
|
|
| 191 |
self.task_creation_pass = False
|
| 192 |
|
| 193 |
# self.curr_task_name = self.generated_task['task-name']
|
|
@@ -278,6 +281,7 @@ class BuildWheel(Task):
|
|
| 278 |
save_text(self.cfg['model_output_dir'], self.generated_task_name + '_error', str(traceback.format_exc()))
|
| 279 |
print("========================================================")
|
| 280 |
print("Syntax Exception:", to_print)
|
|
|
|
| 281 |
return
|
| 282 |
|
| 283 |
try:
|
|
@@ -347,4 +351,6 @@ class BuildWheel(Task):
|
|
| 347 |
save_text(self.cfg['model_output_dir'], self.generated_task_name + '_error', str(traceback.format_exc()))
|
| 348 |
print("========================================================")
|
| 349 |
print("Runtime Exception:", to_print)
|
|
|
|
|
|
|
| 350 |
self.memory.save_run(self.generated_task)
|
|
|
|
| 10 |
from pygments import highlight
|
| 11 |
from pygments.lexers import PythonLexer
|
| 12 |
from pygments.formatters import TerminalFormatter
|
| 13 |
+
import gradio
|
| 14 |
import time
|
| 15 |
import random
|
| 16 |
import json
|
|
|
|
| 150 |
except:
|
| 151 |
to_print = highlight(f"{str(traceback.format_exc())}", PythonLexer(), TerminalFormatter())
|
| 152 |
print("Task Creation Exception:", to_print)
|
| 153 |
+
|
| 154 |
+
raise gradio.Error(f"Task Creation Exception: {str(traceback.format_exc())}")
|
| 155 |
self.task_creation_pass = False
|
| 156 |
|
| 157 |
# self.curr_task_name = self.generated_task['task-name']
|
|
|
|
| 190 |
except:
|
| 191 |
to_print = highlight(f"{str(traceback.format_exc())}", PythonLexer(), TerminalFormatter())
|
| 192 |
print("Task Creation Exception:", to_print)
|
| 193 |
+
raise gradio.Error(f"Task Creation Exception: {str(traceback.format_exc())}")
|
| 194 |
self.task_creation_pass = False
|
| 195 |
|
| 196 |
# self.curr_task_name = self.generated_task['task-name']
|
|
|
|
| 281 |
save_text(self.cfg['model_output_dir'], self.generated_task_name + '_error', str(traceback.format_exc()))
|
| 282 |
print("========================================================")
|
| 283 |
print("Syntax Exception:", to_print)
|
| 284 |
+
raise gradio.Error(f"Syntax Exception: {str(traceback.format_exc())}")
|
| 285 |
return
|
| 286 |
|
| 287 |
try:
|
|
|
|
| 351 |
save_text(self.cfg['model_output_dir'], self.generated_task_name + '_error', str(traceback.format_exc()))
|
| 352 |
print("========================================================")
|
| 353 |
print("Runtime Exception:", to_print)
|
| 354 |
+
|
| 355 |
+
raise gradio.Error(f"Runtime Exception: {str(traceback.format_exc())}")
|
| 356 |
self.memory.save_run(self.generated_task)
|