Commit
·
f7c08a6
1
Parent(s):
ef86508
Display api key
Browse files
app.py
CHANGED
|
@@ -78,9 +78,9 @@ def gen_conv(query: str, history=[system_template], ipcc=True):
|
|
| 78 |
|
| 79 |
|
| 80 |
# Gradio
|
| 81 |
-
def connect(text):
|
| 82 |
openai.api_key = text
|
| 83 |
-
return "You're all set"
|
| 84 |
|
| 85 |
|
| 86 |
with gr.Blocks(title="Eki IPCC Explorer") as demo:
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
# Gradio
|
| 81 |
+
def connect(text=""):
|
| 82 |
openai.api_key = text
|
| 83 |
+
return f"You're all set: this is your api key: {openai.api_key}"
|
| 84 |
|
| 85 |
|
| 86 |
with gr.Blocks(title="Eki IPCC Explorer") as demo:
|