Spaces:
darsoarafa
/
Runtime error

darsoarafa commited on
Commit
f133435
Β·
verified Β·
1 Parent(s): f8f5fcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def chatbot_interface(user_query):
122
  context = "\n".join(retrieved_chunks)
123
 
124
  prompt = f"Gunakan informasi berikut untuk menjawab:\n{context}\n\nPertanyaan: {user_query}"
125
- answer = query_llama(prompt)
126
 
127
  return answer
128
 
 
122
  context = "\n".join(retrieved_chunks)
123
 
124
  prompt = f"Gunakan informasi berikut untuk menjawab:\n{context}\n\nPertanyaan: {user_query}"
125
+ answer = asyncio.run(query_llama(prompt))
126
 
127
  return answer
128