ai-tomoni commited on
Commit
59e8320
·
verified ·
1 Parent(s): 6f02e40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -1,15 +1,18 @@
1
  import gradio as gr
2
 
 
 
 
3
  def simple_function(name):
4
- return f"Hello {name}! This is Gradio 4.x"
5
 
6
- # Gradio 4.x Interface
7
  demo = gr.Interface(
8
  fn=simple_function,
9
  inputs=gr.Textbox(label="Your Name", placeholder="Enter your name here"),
10
  outputs=gr.Textbox(label="Response"),
11
- title="Gradio 4.x Test",
12
- description="Testing if Gradio 4.x works properly"
13
  )
14
 
15
  if __name__ == "__main__":
 
1
  import gradio as gr
2
 
3
+ # Print Gradio version
4
+ print(f"Gradio Version: {gr.__version__}")
5
+
6
  def simple_function(name):
7
+ return f"Hello {name}! Using Gradio {gr.__version__}"
8
 
9
+ # Gradio Interface
10
  demo = gr.Interface(
11
  fn=simple_function,
12
  inputs=gr.Textbox(label="Your Name", placeholder="Enter your name here"),
13
  outputs=gr.Textbox(label="Response"),
14
+ title=f"Gradio Test - Version {gr.__version__}",
15
+ description="Testing Gradio version"
16
  )
17
 
18
  if __name__ == "__main__":