Pranjal Gupta commited on
Commit
04a9369
·
1 Parent(s): cdcdad2

ui changed

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -187,9 +187,13 @@ with gr.Blocks(title="Contextual RAG Chatbot on Hugging Face Spaces") as demo:
187
 
188
  def tokenFunc (value) :
189
  newToken = value
190
- return value
191
 
192
- hf_token_textbox = gr.Interface(fn=tokenFunc, inputs="textbox")
 
 
 
 
 
193
 
194
  print("toeken =---------->", hf_token_textbox[0])
195
 
 
187
 
188
  def tokenFunc (value) :
189
  newToken = value
 
190
 
191
+ hf_token_textbox = gr.Textbox(
192
+ fn = tokenFunc,
193
+ label="Hugging Face Access Token",
194
+ type="password",
195
+ interactive=True
196
+ )
197
 
198
  print("toeken =---------->", hf_token_textbox[0])
199