Spaces:
Sleeping
Sleeping
update the wrong var openaiojb to openaiobj
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def process_chunks(openaikeystr,inputtext):
|
|
56 |
# api_key=openaikeystr,
|
57 |
# )
|
58 |
#openaiojb =OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed")
|
59 |
-
|
60 |
text = inputtext
|
61 |
#openaikey.set_key(openaikeystr)
|
62 |
#print('process_chunk',openaikey.get_key())
|
|
|
56 |
# api_key=openaikeystr,
|
57 |
# )
|
58 |
#openaiojb =OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed")
|
59 |
+
openaiobj =OpenAI( api_key=openaikeystr)
|
60 |
text = inputtext
|
61 |
#openaikey.set_key(openaikeystr)
|
62 |
#print('process_chunk',openaikey.get_key())
|