Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,15 +75,18 @@ def render_file(file):
|
|
75 |
# Gradio application setup
|
76 |
with gr.Blocks() as demo:
|
77 |
with gr.Column():
|
78 |
-
gr.Markdown("""
|
79 |
-
<style>
|
80 |
-
.image-container {
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
86 |
with gr.Row():
|
|
|
87 |
show_img = gr.Image(label='Upload PDF')
|
88 |
|
89 |
# Set up event handlers
|
|
|
75 |
# Gradio application setup
|
76 |
with gr.Blocks() as demo:
|
77 |
with gr.Column():
|
78 |
+
gr.Markdown("""
|
79 |
+
<style>
|
80 |
+
.image-container { height: 680px; }
|
81 |
+
</style>
|
82 |
+
""")
|
83 |
+
with gr.Row():
|
84 |
+
enable_box = gr.Textbox(placeholder='Enter OpenAI API key',
|
85 |
+
show_label=False, interactive=True)
|
86 |
+
disable_box = gr.Textbox(value='OpenAI API key is Set', interactive=False)
|
87 |
+
change_api_key = gr.Button('Change Key')
|
88 |
with gr.Row():
|
89 |
+
chatbot = gr.Chatbot(value=[], elem_id='chatbot')
|
90 |
show_img = gr.Image(label='Upload PDF')
|
91 |
|
92 |
# Set up event handlers
|