Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
def simple_function(name):
|
| 4 |
-
return f"Hello {name}!
|
| 5 |
|
| 6 |
-
# Gradio
|
| 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
|
| 12 |
-
description="Testing
|
| 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__":
|