Spaces:
Runtime error
Runtime error
Commit ·
e018609
1
Parent(s): c01bfcf
Update app.py
Browse files
app.py
CHANGED
|
@@ -398,20 +398,23 @@ In this app, you can explore the outputs of a gpt-3.5 LLM.
|
|
| 398 |
# theme = gr.themes.Default(primary_hue="green")
|
| 399 |
|
| 400 |
with gr.Blocks() as demo:
|
| 401 |
-
gr.
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
|
|
|
|
|
|
|
|
|
| 415 |
with gr.Tab("Summarise PDF"):
|
| 416 |
with gr.Row():
|
| 417 |
with gr.Column(scale=4):
|
|
|
|
| 398 |
# theme = gr.themes.Default(primary_hue="green")
|
| 399 |
|
| 400 |
with gr.Blocks() as demo:
|
| 401 |
+
with gr.Row():
|
| 402 |
+
with gr.Column(scale=4):
|
| 403 |
+
gr.Markdown(
|
| 404 |
+
"""
|
| 405 |
+
# PDF Summariser
|
| 406 |
+
(powered by OPENAI and LangChain)
|
| 407 |
+
""")
|
| 408 |
+
with gr.Column(scale=1):
|
| 409 |
+
user_token = gr.Textbox(
|
| 410 |
+
show_label=True,
|
| 411 |
+
placeholder=f"OpenAI API-key...",
|
| 412 |
+
# value=hide_middle_chars(my_api_key),
|
| 413 |
+
type="password",
|
| 414 |
+
# visible=not HIDE_MY_KEY,
|
| 415 |
+
label="API-Key (Copy and Paste Here)"
|
| 416 |
+
)
|
| 417 |
+
user_token.change(on_token_change, inputs=[user_token], outputs=[])
|
| 418 |
with gr.Tab("Summarise PDF"):
|
| 419 |
with gr.Row():
|
| 420 |
with gr.Column(scale=4):
|