Spaces:
Runtime error
Runtime error
lizhen
commited on
Commit
·
b192bce
1
Parent(s):
da96782
fix
Browse files- openai_simple.py +3 -0
openai_simple.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
#!/usr/bin/python3
|
| 2 |
|
| 3 |
from langchain.llms import OpenAI
|
|
|
|
| 4 |
import os
|
| 5 |
|
|
|
|
|
|
|
| 6 |
llm = OpenAI(temperature=0.9)
|
| 7 |
|
| 8 |
text = "Hi, Could you help me choose a Chinese name? For example"
|
|
|
|
| 1 |
#!/usr/bin/python3
|
| 2 |
|
| 3 |
from langchain.llms import OpenAI
|
| 4 |
+
import langchain
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
print(langchain.__version__)
|
| 8 |
+
|
| 9 |
llm = OpenAI(temperature=0.9)
|
| 10 |
|
| 11 |
text = "Hi, Could you help me choose a Chinese name? For example"
|