Spaces:
Sleeping
Sleeping
darshil3011
commited on
Commit
•
534cfe9
1
Parent(s):
6f8436b
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from gradio_client import Client
|
|
6 |
|
7 |
|
8 |
def get_response(query, history):
|
9 |
-
|
10 |
-
history = str(history
|
11 |
client = Client("https://traversaal-fitx-ai.hf.space/")
|
12 |
result = client.predict(
|
13 |
query, # str in 'query' Textbox component
|
@@ -64,9 +64,6 @@ def respond(message, chat_history):
|
|
64 |
time.sleep(0.5)
|
65 |
return "", chat_history
|
66 |
|
67 |
-
# Display the welcome message before creating the Gradio interface
|
68 |
-
welcome_message = "Welcome to the AI Trainer Chatbot! I'm here to assist you with your questions."
|
69 |
-
print(welcome_message)
|
70 |
|
71 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
72 |
chatbot = gr.Chatbot(title="Fitx AI Chatbot")
|
|
|
6 |
|
7 |
|
8 |
def get_response(query, history):
|
9 |
+
|
10 |
+
history = str(history)
|
11 |
client = Client("https://traversaal-fitx-ai.hf.space/")
|
12 |
result = client.predict(
|
13 |
query, # str in 'query' Textbox component
|
|
|
64 |
time.sleep(0.5)
|
65 |
return "", chat_history
|
66 |
|
|
|
|
|
|
|
67 |
|
68 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
69 |
chatbot = gr.Chatbot(title="Fitx AI Chatbot")
|