Spaces:
Sleeping
Sleeping
info added
Browse files
app.py
CHANGED
|
@@ -20,20 +20,14 @@ with gr.Blocks() as demo:
|
|
| 20 |
with gr.Row():
|
| 21 |
with gr.Column():
|
| 22 |
llm = gr.Dropdown(["gpt-3.5-turbo", "google_flan_t5_xxl"], type="value", multiselect=False)
|
| 23 |
-
api_key = gr.Text(label="Enter API Key for the selected model", info="Generate key for
|
| 24 |
-
email_features = gr.TextArea(label="Input Email features", value=input_temp)
|
| 25 |
-
example_feature_template = gr.TextArea(label="Example Email - features", value = example_input_feat_temp)
|
| 26 |
-
example_subj_body_template = gr.TextArea(label="Example Email - subject and body", value = example_input_subj_body_temp)
|
| 27 |
|
| 28 |
with gr.Column():
|
| 29 |
generated_output = gr.TextArea(label="Generated Text")
|
| 30 |
|
| 31 |
-
# input_dict = {"llm":llm,
|
| 32 |
-
# "api_key":api_key,
|
| 33 |
-
# "email_features":email_features,
|
| 34 |
-
# "example_feature_template":example_feature_template,
|
| 35 |
-
# "example_subj_body_template":example_subj_body_template
|
| 36 |
-
# }
|
| 37 |
|
| 38 |
btn = gr.Button("Generate")
|
| 39 |
|
|
|
|
| 20 |
with gr.Row():
|
| 21 |
with gr.Column():
|
| 22 |
llm = gr.Dropdown(["gpt-3.5-turbo", "google_flan_t5_xxl"], type="value", multiselect=False)
|
| 23 |
+
api_key = gr.Text(label="Enter API Key for the selected model", info="Generate key for google flan model from - https://huggingface.co/docs/hub/security-tokens \n for gpt - https://platform.openai.com/account/api-keys")
|
| 24 |
+
email_features = gr.TextArea(label="Input Email features", value=input_temp, info = "Change the email features here")
|
| 25 |
+
example_feature_template = gr.TextArea(label="Example Email - features", value = example_input_feat_temp, info = "Use this template example or change as per your need")
|
| 26 |
+
example_subj_body_template = gr.TextArea(label="Example Email - subject and body", value = example_input_subj_body_temp, info = "Use this template example or change as per your need")
|
| 27 |
|
| 28 |
with gr.Column():
|
| 29 |
generated_output = gr.TextArea(label="Generated Text")
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
btn = gr.Button("Generate")
|
| 33 |
|