File size: 636 Bytes
97bbfd7
 
 
 
 
 
 
6fe3e9d
1649dbc
70cbdfe
97bbfd7
88e4f6a
 
1649dbc
88e4f6a
 
 
70cbdfe
88e4f6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

def greet(name):
    return "Hello " + name + "!"

#demo = gr.Interface(fn=greet, inputs="text", outputs="text")

#demo = gr.load(spaces="PharmaAI/private_gradio_test", inputs="text", outputs="text")
    #HIDE THIS API KEY WHEN MADE PUBLIC*****************************************************************
demo = gr.load(name="PharmaAI/private_gradio_test", hf_token="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", src="spaces")
    
#if __name__ == "__main__":
    #demo.launch(show_api=False)  

#demo.queue(api_open=False).launch(show_api=False)


#demo = gr.load("gradio/question-answering", src="spaces")
demo.launch()