Will Hendrickson commited on
Commit
bc5cf54
1 Parent(s): d04b27b

changed key name

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -8,7 +8,7 @@ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
8
  demo.launch()
9
  '''
10
 
11
-
12
  import os
13
  import gradio as gr
14
 
@@ -20,5 +20,13 @@ with gr.Blocks() as demo:
20
  demo.queue(concurrency_count=10, max_size=20)
21
  demo.launch()
22
 
 
 
 
 
 
 
 
 
23
 
24
  #gr.Interface.load("huggingface.co/spaces/will3d/my_chat_bot_101").launch()
 
8
  demo.launch()
9
  '''
10
 
11
+ '''
12
  import os
13
  import gradio as gr
14
 
 
20
  demo.queue(concurrency_count=10, max_size=20)
21
  demo.launch()
22
 
23
+ '''
24
+
25
+ import os
26
+ import gradio as gr
27
+ read_key = os.environ.get('HF_TOKEN', None)
28
+ import gradio as gr
29
+ demo = gr.load("will3d/my_chat_bot_101", hf_token=read_key, src="spaces")
30
+ demo.launch()
31
 
32
  #gr.Interface.load("huggingface.co/spaces/will3d/my_chat_bot_101").launch()