NinaAchache commited on
Commit
a6ba9ec
1 Parent(s): f9aee46

Display api key

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: