Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
5a275a6
1
Parent(s):
b0b982e
let's try a requirements file
Browse files- app.py +0 -2
- requirements.txt +2 -0
app.py
CHANGED
@@ -2,8 +2,6 @@ import gradio as gr
|
|
2 |
import os
|
3 |
import openai
|
4 |
|
5 |
-
os.system('pip install openai')
|
6 |
-
|
7 |
openai.api_key = os.getenv("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")
|
8 |
|
9 |
|
|
|
2 |
import os
|
3 |
import openai
|
4 |
|
|
|
|
|
5 |
openai.api_key = os.getenv("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")
|
6 |
|
7 |
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
pip install openai
|
2 |
+
openai~=0.27.2
|