Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
|
|
9 |
# Set your OpenAI API key
|
10 |
|
11 |
'''file = client.files.create(
|
12 |
-
file=open("
|
13 |
purpose='assistants'
|
14 |
)'''
|
15 |
|
|
|
9 |
# Set your OpenAI API key
|
10 |
|
11 |
'''file = client.files.create(
|
12 |
+
file=open("file.extension", "rb"),
|
13 |
purpose='assistants'
|
14 |
)'''
|
15 |
|