Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,7 +252,8 @@ def ask_llm(system, user_input):
|
|
| 252 |
def ask_llm_stream(system, user_input):
|
| 253 |
llm_response = ""
|
| 254 |
client = Groq(api_key=os.environ["GROQ_KEY"])
|
| 255 |
-
|
|
|
|
| 256 |
messages = [
|
| 257 |
{
|
| 258 |
"role": "system",
|
|
|
|
| 252 |
def ask_llm_stream(system, user_input):
|
| 253 |
llm_response = ""
|
| 254 |
client = Groq(api_key=os.environ["GROQ_KEY"])
|
| 255 |
+
if user_input is None or user_input == "":
|
| 256 |
+
user_input = "What is the introduction of the document about?"
|
| 257 |
messages = [
|
| 258 |
{
|
| 259 |
"role": "system",
|