Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from os import environ
|
3 |
|
4 |
-
|
5 |
|
6 |
-
demo = gr.load(name="spaces/aliabd/private_code",
|
7 |
|
8 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from os import environ
|
3 |
|
4 |
+
api_key = environ.get("AUTH_TOKEN")
|
5 |
|
6 |
+
demo = gr.load(name="spaces/aliabd/private_code", api_key=api_key)
|
7 |
|
8 |
demo.launch()
|