Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def simple_chat(message, history):
|
| 4 |
+
return history + [[message, f"Echo: {message}"]]
|
| 5 |
+
|
| 6 |
+
demo = gr.ChatInterface(
|
| 7 |
+
fn=simple_chat,
|
| 8 |
+
title="Test App",
|
| 9 |
+
description="Gradio 5.x Test"
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
demo.launch()
|