Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,20 +3,10 @@ import os
|
|
3 |
|
4 |
hf_token = os.environ['GRADIO_API_KEY']
|
5 |
|
6 |
-
def greet(name):
|
7 |
-
return "Hello " + name + "!"
|
8 |
|
9 |
-
#
|
10 |
-
|
11 |
-
#demo = gr.load(spaces="PharmaAI/private_gradio_test", inputs="text", outputs="text")
|
12 |
-
#HIDE THIS API KEY WHEN MADE PUBLIC*****************************************************************
|
13 |
demo = gr.load(name="PharmaAI/private_gradio_test", hf_token=hf_token, src="spaces")
|
14 |
|
15 |
-
#if __name__ == "__main__":
|
16 |
-
#demo.launch(show_api=False)
|
17 |
-
|
18 |
-
#demo.queue(api_open=False).launch(show_api=False)
|
19 |
-
|
20 |
|
21 |
-
#
|
22 |
demo.launch(auth=("admin", "pass1234"))
|
|
|
3 |
|
4 |
hf_token = os.environ['GRADIO_API_KEY']
|
5 |
|
|
|
|
|
6 |
|
7 |
+
#HIDE THIS API KEY WHEN MADE PUBLIC*****************************************************************
|
|
|
|
|
|
|
8 |
demo = gr.load(name="PharmaAI/private_gradio_test", hf_token=hf_token, src="spaces")
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
#HIDE THESE AS SECRETS WHEN MADE PUBLIC*****************************************************************
|
12 |
demo.launch(auth=("admin", "pass1234"))
|