Commit
•
71d7ef7
1
Parent(s):
774e5ad
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def download_model():
|
|
35 |
|
36 |
def infer(secret_token, image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123):
|
37 |
if secret_token != SECRET_TOKEN:
|
38 |
-
|
39 |
-
|
40 |
|
41 |
|
42 |
resolution = (576, 1024)
|
|
|
35 |
|
36 |
def infer(secret_token, image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123):
|
37 |
if secret_token != SECRET_TOKEN:
|
38 |
+
raise gr.Error(
|
39 |
+
f'Invalid secret token. Please fork the original space if you want to use it for yourself.')
|
40 |
|
41 |
|
42 |
resolution = (576, 1024)
|