Spaces:
Runtime error
Runtime error
Commit
·
a11305b
1
Parent(s):
e7d44df
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def generate_code(api_key, prompt):
|
|
13 |
temperature=0.5,
|
14 |
)
|
15 |
|
16 |
-
return response.choices[0].text
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
api_key_input = gr.inputs.Textbox(lines=1, label="OpenAI API Key", type="password")
|
|
|
13 |
temperature=0.5,
|
14 |
)
|
15 |
|
16 |
+
return response.choices[0].text
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
api_key_input = gr.inputs.Textbox(lines=1, label="OpenAI API Key", type="password")
|