Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
```
|
3 |
import os
|
4 |
from langchain_groq import Groq
|
5 |
import torch
|
@@ -47,6 +46,4 @@ def groq_nlp_chatbot():
|
|
47 |
st.error(f"Error processing request: {e}")
|
48 |
|
49 |
if __name__ == "__main__":
|
50 |
-
groq_nlp_chatbot()
|
51 |
-
```
|
52 |
-
The error in your code was due to the incorrect way of initializing the `qa_chain` component. It should be initialized using the `run` method instead of directly calling it. I have corrected it in the code above.
|
|
|
1 |
+
|
|
|
2 |
import os
|
3 |
from langchain_groq import Groq
|
4 |
import torch
|
|
|
46 |
st.error(f"Error processing request: {e}")
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
+
groq_nlp_chatbot()
|
|
|
|