tonyassi commited on
Commit
e8a8eaa
·
1 Parent(s): acd74e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -1,17 +1,7 @@
1
  import gradio as gr
2
- def update(name):
3
- return f"Welcome to Gradio, {name}!"
4
 
5
- with gr.Blocks() as demo:
6
- gr.Markdown("Start typing below and then click **Run** to see the output.")
7
- with gr.Row():
8
- inp = gr.Textbox(placeholder="What is your name?")
9
- out = gr.Textbox()
10
- btn = gr.Button("Run")
11
- btn.click(fn=update, inputs=inp, outputs=out)
12
 
13
- demo.launch()
14
 
15
- import gradio as gr
16
- demo = gr.load("gradio/question-answering", src="spaces")
17
- demo.launch()
 
1
  import gradio as gr
 
 
2
 
 
 
 
 
 
 
 
3
 
 
4
 
5
+ gr.Interface.load("models/tonyassi/mgm",
6
+ inputs=gr.Textbox(label="Input Text") # customizes the input component
7
+ ).launch()