abdulsamad commited on
Commit
0a0869f
·
verified ·
1 Parent(s): c9de3a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -22,15 +22,11 @@ import torch
22
 
23
  import gradio as gr
24
 
25
- # Your string variable (replace with your actual content)
26
- text = "Hello, Gradio!"
 
27
 
28
 
29
- input_text = gr.inputs.Textbox(lines=5, label="Enter Text:")
30
 
31
- # Create a Gradio interface with a label
32
- label = gr.Label(text)
33
-
34
- # Launch the Gradio app
35
- interface = gr.Interface(fn =None ,inputs=None, outputs=label, title="String Display Example")
36
- interface.launch()
 
22
 
23
  import gradio as gr
24
 
25
+ # name of the function
26
+ def greet(name):
27
+ return "Hello " + name
28
 
29
 
30
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
31
 
32
+ demo.launch()