Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,36 +77,14 @@ with gr.Blocks() as demo:
|
|
77 |
with gr.Column():
|
78 |
gr.Markdown("""
|
79 |
<style>
|
80 |
-
.
|
81 |
-
height:
|
82 |
-
/* Other styles, e.g., background-color, border, etc. */
|
83 |
}
|
84 |
</style>
|
85 |
-
""")
|
86 |
-
with gr.Row():
|
87 |
-
with gr.Column(scale=0.8):
|
88 |
-
enable_box = gr.Textbox(placeholder='Enter OpenAI API key',
|
89 |
-
show_label=False, interactive=True)
|
90 |
-
disable_box = gr.Textbox(value='OpenAI API key is Set', interactive=False)
|
91 |
-
with gr.Column(scale=0.2):
|
92 |
-
change_api_key = gr.Button('Change Key')
|
93 |
|
94 |
with gr.Row():
|
95 |
-
|
96 |
-
show_img = gr.Image(label='Upload PDF', style={"height": "680px"})
|
97 |
-
|
98 |
-
with gr.Row():
|
99 |
-
with gr.Column(scale=0.70):
|
100 |
-
txt = gr.Textbox(
|
101 |
-
show_label=False,
|
102 |
-
placeholder="Enter text and press enter"
|
103 |
-
).style(container=False)
|
104 |
-
|
105 |
-
with gr.Column(scale=0.15):
|
106 |
-
submit_btn = gr.Button('Submit')
|
107 |
-
|
108 |
-
with gr.Column(scale=0.15):
|
109 |
-
btn = gr.UploadButton("📁 Upload a PDF", file_types=[".pdf"]).style()
|
110 |
|
111 |
# Set up event handlers
|
112 |
|
|
|
77 |
with gr.Column():
|
78 |
gr.Markdown("""
|
79 |
<style>
|
80 |
+
.image-container { /* Customize this class name if needed */
|
81 |
+
height: 680px;
|
|
|
82 |
}
|
83 |
</style>
|
84 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
with gr.Row():
|
87 |
+
show_img = gr.Image(label='Upload PDF')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
# Set up event handlers
|
90 |
|