Spaces:
Build error
Build error
Commit
·
f48f015
1
Parent(s):
c0ffdbb
Update app.py
Browse files
app.py
CHANGED
@@ -97,8 +97,8 @@ with gr.Blocks() as demo:
|
|
97 |
file_input = gr.File(label="Load a .txt or .py file",
|
98 |
file_types=['.py', '.txt'], type="file",
|
99 |
elem_classes="short-height")
|
100 |
-
instructor_prompt =
|
101 |
-
gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
|
102 |
-
|
103 |
|
104 |
demo.queue().launch(server_name='0.0.0.0', server_port=7860)
|
|
|
97 |
file_input = gr.File(label="Load a .txt or .py file",
|
98 |
file_types=['.py', '.txt'], type="file",
|
99 |
elem_classes="short-height")
|
100 |
+
instructor_prompt = os.environ.get("OPENAI_API_KEY")
|
101 |
+
gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
|
102 |
+
gr.Textbox(os.environ.get("OPENAI_API_KEY"))
|
103 |
|
104 |
demo.queue().launch(server_name='0.0.0.0', server_port=7860)
|