Spaces:
Build error
Build error
Create app.py
Browse files
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)
|