Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def predict(question):
|
4 |
+
# Placeholder logic – you can replace this with a model or knowledge base
|
5 |
+
return f"Su'aashaada '{question}' wali jawaabteeda lama heli karo. Fadlan dib u fiiri."
|
6 |
+
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=predict,
|
9 |
+
inputs=gr.Textbox(lines=2, placeholder="Gali su'aal ku saabsan beeraha..."),
|
10 |
+
outputs="text",
|
11 |
+
title="Tacab Somali Agriculture Q&A",
|
12 |
+
description="Su'aalo iyo jawaabo ku saabsan waaxda beeraha ee Soomaaliya."
|
13 |
+
)
|
14 |
+
|
15 |
+
iface.launch()
|