Commit
•
210288a
1
Parent(s):
16def6f
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
|
|
105 |
base_url = "http://0.0.0.0:7860"
|
106 |
for i, key in enumerate(names):
|
107 |
value = args[i]
|
108 |
-
|
109 |
if value is not SECRET_TOKEN:
|
110 |
raise gr.Error("Invalid secret token! Please fork this space if you want to use it, and define your own secret token.")
|
111 |
continue
|
|
|
105 |
base_url = "http://0.0.0.0:7860"
|
106 |
for i, key in enumerate(names):
|
107 |
value = args[i]
|
108 |
+
if name is "secret_token":
|
109 |
if value is not SECRET_TOKEN:
|
110 |
raise gr.Error("Invalid secret token! Please fork this space if you want to use it, and define your own secret token.")
|
111 |
continue
|