Spaces:
Sleeping
Sleeping
Commit
•
e8bc2e1
1
Parent(s):
06159cc
Update app.py
Browse files
app.py
CHANGED
@@ -298,15 +298,15 @@ with gr.Blocks() as demo:
|
|
298 |
run_button_analysis.click(
|
299 |
fn=company_analysis,
|
300 |
inputs=[
|
301 |
-
gr.
|
302 |
-
gr.
|
303 |
],
|
304 |
outputs=[
|
305 |
-
gr.
|
306 |
-
gr.
|
307 |
-
gr.
|
308 |
-
gr.
|
309 |
-
gr.
|
310 |
],
|
311 |
title="Chain Example: Language, Summary, Translate, Respond & Translate",
|
312 |
description="Translates an email to English, provides a summary, plausible reply and translates back to the sender"
|
|
|
298 |
run_button_analysis.click(
|
299 |
fn=company_analysis,
|
300 |
inputs=[
|
301 |
+
gr.Textbox(label="Enter your OpenAI API Key:", type="password"),
|
302 |
+
gr.Textbox(label="Enter the Company Name:")
|
303 |
],
|
304 |
outputs=[
|
305 |
+
gr.Textbox(label="Language"),
|
306 |
+
gr.Textbox(label="Summary"),
|
307 |
+
gr.Textbox(label="Translated Email"),
|
308 |
+
gr.Textbox(label="Reply in English"),
|
309 |
+
gr.Textbox(label="Reply in Original Language")
|
310 |
],
|
311 |
title="Chain Example: Language, Summary, Translate, Respond & Translate",
|
312 |
description="Translates an email to English, provides a summary, plausible reply and translates back to the sender"
|