Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,24 +1,14 @@
|
|
1 |
-
from flask import Flask, render_templates, request
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
fn=chatbot,
|
17 |
-
inputs=gr.Textbox(),
|
18 |
-
outputs=gr.Textbox(label="Response"),
|
19 |
-
title="Hotel Booking Chatbot",
|
20 |
-
)
|
21 |
-
return iface.launch()
|
22 |
-
|
23 |
-
if __name__ == '__main__':
|
24 |
-
app.run(debug=True)
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def chatbot_response(text):
|
4 |
+
# Placeholder for actual AI logic
|
5 |
+
return f"You said: {text}"
|
6 |
+
|
7 |
+
# Create Gradio interface
|
8 |
+
gr.Interface(
|
9 |
+
fn=chatbot_response,
|
10 |
+
inputs="text",
|
11 |
+
outputs="text",
|
12 |
+
title="Hotel Booking Voice AI Chatbot",
|
13 |
+
description="Ask anything related to hotel booking",
|
14 |
+
).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|