Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ async def initialize_thread():
|
|
57 |
|
58 |
async def generate_response(user_input):
|
59 |
if user_input == "":
|
60 |
-
yield "
|
61 |
else:
|
62 |
assistant_id = session_data["assistant_id"]
|
63 |
thread_id = session_data["thread_id"]
|
@@ -85,7 +85,7 @@ async def generate_response(user_input):
|
|
85 |
|
86 |
# Gradio interface function (generator)
|
87 |
async def gradio_chat_interface(mode, password, user_input, example):
|
88 |
-
if mode == "
|
89 |
filename = example[-6:-2] + ".md"
|
90 |
file = open("examples/" + filename, "r")
|
91 |
output = file.read()
|
|
|
57 |
|
58 |
async def generate_response(user_input):
|
59 |
if user_input == "":
|
60 |
+
yield "Submit your question as input !"
|
61 |
else:
|
62 |
assistant_id = session_data["assistant_id"]
|
63 |
thread_id = session_data["thread_id"]
|
|
|
85 |
|
86 |
# Gradio interface function (generator)
|
87 |
async def gradio_chat_interface(mode, password, user_input, example):
|
88 |
+
if mode == "Examples":
|
89 |
filename = example[-6:-2] + ".md"
|
90 |
file = open("examples/" + filename, "r")
|
91 |
output = file.read()
|