Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def hello(message):
|
| 4 |
+
return f"Hadithi is working. You said: {message}"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
+
fn=hello,
|
| 8 |
+
inputs=gr.Textbox(label="Ask"),
|
| 9 |
+
outputs=gr.Textbox(label="Reply"),
|
| 10 |
+
title="Hadithi",
|
| 11 |
+
description="First test for the Hugging Face Space"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
demo.launch()
|