make openai key and hf key password

#2
by Amrrs - opened
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -115,7 +115,8 @@ with gr.Blocks() as demo:
115
  openai_api_key = gr.Textbox(
116
  show_label=False,
117
  placeholder="Set your OpenAI API key here and press Enter",
118
- lines=1
 
119
  ).style(container=False)
120
  with gr.Column(scale=0.15, min_width=0):
121
  btn1 = gr.Button("Submit").style(full_height=True)
@@ -125,7 +126,8 @@ with gr.Blocks() as demo:
125
  hugging_face_token = gr.Textbox(
126
  show_label=False,
127
  placeholder="Set your Hugging Face Token here and press Enter",
128
- lines=1
 
129
  ).style(container=False)
130
  with gr.Column(scale=0.15, min_width=0):
131
  btn3 = gr.Button("Submit").style(full_height=True)
 
115
  openai_api_key = gr.Textbox(
116
  show_label=False,
117
  placeholder="Set your OpenAI API key here and press Enter",
118
+ lines=1,
119
+ type="password"
120
  ).style(container=False)
121
  with gr.Column(scale=0.15, min_width=0):
122
  btn1 = gr.Button("Submit").style(full_height=True)
 
126
  hugging_face_token = gr.Textbox(
127
  show_label=False,
128
  placeholder="Set your Hugging Face Token here and press Enter",
129
+ lines=1,
130
+ type="password"
131
  ).style(container=False)
132
  with gr.Column(scale=0.15, min_width=0):
133
  btn3 = gr.Button("Submit").style(full_height=True)