rajsinghparihar
commited on
Commit
·
10eebb7
1
Parent(s):
31f9688
fixed function input dtypes
Browse files
app.py
CHANGED
@@ -113,24 +113,13 @@ with gr.Blocks(theme="gradio/monochrome") as demo:
|
|
113 |
with gr.Tab("Search Flights"):
|
114 |
gr.Interface(
|
115 |
fn=search_flights,
|
116 |
-
inputs=[
|
117 |
-
"text",
|
118 |
-
"text",
|
119 |
-
gr.DateTime(include_time=False),
|
120 |
-
gr.DateTime(include_time=False),
|
121 |
-
"text",
|
122 |
-
],
|
123 |
outputs=gr.JSON(),
|
124 |
)
|
125 |
with gr.Tab("Search Hotels"):
|
126 |
gr.Interface(
|
127 |
fn=search_hotels,
|
128 |
-
inputs=[
|
129 |
-
"text",
|
130 |
-
gr.DateTime(include_time=False),
|
131 |
-
gr.DateTime(include_time=False),
|
132 |
-
]
|
133 |
-
+ ["text"] * 6,
|
134 |
outputs=gr.JSON(),
|
135 |
)
|
136 |
|
|
|
113 |
with gr.Tab("Search Flights"):
|
114 |
gr.Interface(
|
115 |
fn=search_flights,
|
116 |
+
inputs=["text"] * 5,
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
outputs=gr.JSON(),
|
118 |
)
|
119 |
with gr.Tab("Search Hotels"):
|
120 |
gr.Interface(
|
121 |
fn=search_hotels,
|
122 |
+
inputs=["text"] * 9,
|
|
|
|
|
|
|
|
|
|
|
123 |
outputs=gr.JSON(),
|
124 |
)
|
125 |
|