Spaces:
Runtime error
Runtime error
Commit
·
9a316ca
1
Parent(s):
8cbc513
test
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ 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
|
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 |
+
os.environ['OPENAI_API_TOKEN'] = api_key_input.value
|
70 |
|
71 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
72 |
|