Spaces:
Runtime error
Runtime error
jackyliang42
commited on
Commit
·
2f89158
1
Parent(s):
922e0e8
err msg for run
Browse files
app.py
CHANGED
@@ -120,6 +120,8 @@ def setup(api_key, model_name, n_blocks, n_bowls):
|
|
120 |
|
121 |
|
122 |
def run(instruction, demo_runner):
|
|
|
|
|
123 |
return demo_runner.run(instruction)
|
124 |
|
125 |
|
|
|
120 |
|
121 |
|
122 |
def run(instruction, demo_runner):
|
123 |
+
if demo_runner is None:
|
124 |
+
return 'Please run setup first!', None, None
|
125 |
return demo_runner.run(instruction)
|
126 |
|
127 |
|