Spaces:
Runtime error
Runtime error
Commit
·
13d157d
1
Parent(s):
9a316ca
test
Browse files
app.py
CHANGED
@@ -66,7 +66,9 @@ def interface():
|
|
66 |
tab_name = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity")
|
67 |
btn = gr.Button("Submit")
|
68 |
|
|
|
69 |
os.environ['OPENAI_API_TOKEN'] = api_key_input.value
|
|
|
70 |
|
71 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
72 |
|
|
|
66 |
tab_name = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity")
|
67 |
btn = gr.Button("Submit")
|
68 |
|
69 |
+
#API Keys
|
70 |
os.environ['OPENAI_API_TOKEN'] = api_key_input.value
|
71 |
+
openai.api_key = os.environ['OPENAI_API_TOKEN']
|
72 |
|
73 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
74 |
|