Spaces:
Runtime error
Runtime error
Commit
·
755ed65
1
Parent(s):
ce04591
Update app.py
Browse files
app.py
CHANGED
@@ -78,12 +78,12 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
78 |
|
79 |
with gr.Blocks() as demo:
|
80 |
|
81 |
-
gr.Markdown(<h2 style="color:blue; font-size:20px; text-align: center; justify-content: center;">Q&A bot for PDF docs. Upload your document, press the button, and wait for confirmation of success</h2>')
|
82 |
|
83 |
with gr.Tab('Input PDF document here'):
|
84 |
text_input = gr.File()
|
|
|
85 |
success_output = gr.Textbox()
|
86 |
-
text_output = gr.Textbox()
|
87 |
text_button = gr.Button('Build the bot!')
|
88 |
text_button.click(extract_info, text_input, [success_output,text_output])
|
89 |
with gr.Tab('Knowledge bot'):
|
|
|
78 |
|
79 |
with gr.Blocks() as demo:
|
80 |
|
81 |
+
gr.Markdown('<h2 style="color:blue; font-size:20px; text-align: center; justify-content: center;">Q&A bot for PDF docs. Upload your document, press the button, and wait for confirmation of success</h2>')
|
82 |
|
83 |
with gr.Tab('Input PDF document here'):
|
84 |
text_input = gr.File()
|
85 |
+
text_output = gr.Textbox(label= "Extracted Text")
|
86 |
success_output = gr.Textbox()
|
|
|
87 |
text_button = gr.Button('Build the bot!')
|
88 |
text_button.click(extract_info, text_input, [success_output,text_output])
|
89 |
with gr.Tab('Knowledge bot'):
|