beth594 commited on
Commit
9b5303e
·
verified ·
1 Parent(s): 9ffbf88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -1,13 +1,11 @@
1
  #!/usr/bin/env python
2
 
3
  import gradio as gr
 
4
 
5
- def greet(text):
6
- return text
7
-
8
- with gr.Blocks() as demo:
9
- input = gr.TextArea()
10
- output = gr.TextArea()
11
- gr.Button().click(fn=greet, inputs=input, outputs=output)
12
 
13
- demo.launch(debug=True)
 
 
 
 
 
1
  #!/usr/bin/env python
2
 
3
  import gradio as gr
4
+ import os
5
 
 
 
 
 
 
 
 
6
 
7
+ #space_key = os.environ.get('read_token')
8
+ iface = gr.load(name="beth594/test-inner",
9
+ #hf_token=space_key,
10
+ src='spaces')
11
+ iface.launch(show_api=False)