xianbao commited on
Commit
4c10d2b
·
verified ·
1 Parent(s): 0204bed

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ import gradio as gr
4
+
5
+ def greet(name):
6
+ return "Hello " + name + "!"
7
+
8
+ with gr.Blocks() as demo:
9
+ repo_id = gr.Textbox(label="Model Scope Repo ID")
10
+ hf_token = gr.Textbox(label="Hugging Face token (read/write)")
11
+ with gr.Row():
12
+ button = gr.Button("Submit", variant="primary")
13
+ clear = gr.Button("Clear")
14
+ output = gr.Textbox(label="Output")
15
+
16
+
17
+
18
+ demo.launch(share=True, debug=True)