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

gradio text box xhange

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -189,13 +189,10 @@ with gr.Blocks(title="Contextual RAG Chatbot on Hugging Face Spaces") as demo:
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
 
200
  chatbot = gr.ChatInterface(
201
  fn=lambda message, history: gradio_rag_wrapper(message, history, hf_token_textbox.value),
 
189
  newToken = value
190
 
191
  hf_token_textbox = gr.Textbox(
 
192
  label="Hugging Face Access Token",
 
 
193
  )
194
 
195
+ print("toeken =---------->", hf_token_textbox)
196
 
197
  chatbot = gr.ChatInterface(
198
  fn=lambda message, history: gradio_rag_wrapper(message, history, hf_token_textbox.value),