Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,16 @@ class UnifiedSystem:
|
|
33 |
|
34 |
return "Intent not recognized."
|
35 |
|
|
|
36 |
def create_interface():
|
37 |
system = UnifiedSystem()
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
iface = gr.Interface(
|
40 |
fn=system.process_query,
|
41 |
inputs=gr.Textbox(
|
@@ -44,7 +51,8 @@ def create_interface():
|
|
44 |
),
|
45 |
outputs=gr.Textbox(label="Response"),
|
46 |
title="Unified Query Processing System",
|
47 |
-
description="Enter a natural language query to search products or get descriptions."
|
|
|
48 |
)
|
49 |
|
50 |
return iface
|
|
|
33 |
|
34 |
return "Intent not recognized."
|
35 |
|
36 |
+
|
37 |
def create_interface():
|
38 |
system = UnifiedSystem()
|
39 |
|
40 |
+
examples = [
|
41 |
+
"Show me shirt less than 5 USD",
|
42 |
+
"Show me shirt with red color",
|
43 |
+
"Show me T-shirt with M size"
|
44 |
+
]
|
45 |
+
|
46 |
iface = gr.Interface(
|
47 |
fn=system.process_query,
|
48 |
inputs=gr.Textbox(
|
|
|
51 |
),
|
52 |
outputs=gr.Textbox(label="Response"),
|
53 |
title="Unified Query Processing System",
|
54 |
+
description="Enter a natural language query to search products or get descriptions.",
|
55 |
+
examples=examples
|
56 |
)
|
57 |
|
58 |
return iface
|