Spaces:
Sleeping
Sleeping
Update app.py
Browse files1. authetication
2. api_name
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'))
|