aymonc commited on
Commit
55cd117
1 Parent(s): d5bd5cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
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
- #demo = gr.Interface(fn=greet, inputs="text", outputs="text")
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
- #demo = gr.load("gradio/question-answering", src="spaces")
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"))