omerXfaruq commited on
Commit
d81bfaf
1 Parent(s): 0e8eeed

Initial commit with a draft model

Browse files
Files changed (2) hide show
  1. app.py +23 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(spaces, hf_token, username,space_name,space_description):
4
+ return "Thank you for using the draft, it will be completed later"
5
+
6
+ iface = gr.Interface(
7
+ fn=greet,
8
+ inputs=[
9
+ gr.inputs.Textbox(
10
+ lines=4,
11
+ placeholder=(
12
+ f"Drop space links at each line, ie:\nspaces/Norod78/ComicsHeroHD\nspaces/Amrrs/gradio-sentiment-analyzer"
13
+ )
14
+ ),
15
+ gr.inputs.Textbox(lines=1, placeholder="HF Read Token"),
16
+ gr.inputs.Textbox(lines=1, placeholder="Your username"),
17
+ gr.inputs.Textbox(lines=1, placeholder="Name for the space"),
18
+ gr.inputs.Textbox(lines=1, placeholder="Description for the space"),
19
+
20
+ ],
21
+ outputs="text"
22
+ )
23
+ iface.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio