hitz02 commited on
Commit
a1123b8
·
1 Parent(s): 85db1fa

Update app.py

Browse files

1. authetication
2. api_name

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ with gr.Blocks() as demo:
31
  generated_output = gr.TextArea(label="Generated Text")
32
 
33
 
34
- btn = gr.Button("Generate")
35
 
36
  btn.click(generate_text,
37
  inputs=[llm, api_key, email_features, example_feature_template, example_subj_body_template],
@@ -40,4 +40,4 @@ with gr.Blocks() as demo:
40
  # gr.Examples(["My name is Clara and I am"], inputs=[seed])
41
 
42
  if __name__ == "__main__":
43
- demo.launch()
 
31
  generated_output = gr.TextArea(label="Generated Text")
32
 
33
 
34
+ btn = gr.Button("Generate", api_name='jd_gen')
35
 
36
  btn.click(generate_text,
37
  inputs=[llm, api_key, email_features, example_feature_template, example_subj_body_template],
 
40
  # gr.Examples(["My name is Clara and I am"], inputs=[seed])
41
 
42
  if __name__ == "__main__":
43
+ demo.launch(auth=('sense', 'codefest123'))