Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
inputs=gr.Textbox(label="Enter your name"),
|
| 9 |
-
outputs=gr.Textbox(label="Output"),
|
| 10 |
-
title="AI Chatbot"
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
if __name__ == "__main__":
|
| 14 |
-
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
gr.Interface(
|
| 4 |
+
lambda x: f"Hello {x}",
|
| 5 |
+
"text",
|
| 6 |
+
"text"
|
| 7 |
+
).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|