Spaces:
Running
Running
Karthikeyan
commited on
Commit
•
5f091d6
1
Parent(s):
fee00c8
Update app.py
Browse files
app.py
CHANGED
@@ -85,14 +85,7 @@ def answer_question(question, state):
|
|
85 |
return "Please upload Proper Document"
|
86 |
|
87 |
|
88 |
-
title = """
|
89 |
-
<div style="text-align: center;max-width: 700px;">
|
90 |
-
<h1>ADOPLE AI - Document ChatBot</h1>
|
91 |
-
<p style="text-align: center;">Upload a PDF, click the "Load PDF" button, <br /></p>
|
92 |
-
<a style="display:inline-block; margin-left: 1em" href="https://www.adople.com"><img src="https://lh6.googleusercontent.com/FQJXx8B6Tbq7SvSE3wvJyXusFZxKcsY92eQaPnZj5pIDdXHVjs10tXXBqWcF0BgC_riSFcje2qUd-XWaiaJByI6dMOkEFdAtpeG7KK8xh7nH8KE3GfSOMrySKPVWXGdEvg=w1280" alt="Adople AI"></a>
|
93 |
-
<hr style="border-top: 5px solid white;">
|
94 |
-
</div>
|
95 |
-
"""
|
96 |
|
97 |
with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
|
98 |
state = gr.State(get_empty_state())
|
@@ -121,4 +114,4 @@ with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
|
|
121 |
upload_button.upload(upload_file, upload_button, [file_output,state])
|
122 |
user_question.submit(answer_question, [user_question, state], [answer])
|
123 |
|
124 |
-
demo.
|
|
|
85 |
return "Please upload Proper Document"
|
86 |
|
87 |
|
88 |
+
title = """<div style="text-align: center;max-width: 700px;"><h1>ADOPLE AI - Document ChatBot</h1><p style="text-align: center;">Upload a PDF, click the "Load PDF" button, <br /></p><a style="display:inline-block; margin-left: 1em" href="https://www.adople.com"><img src="https://lh6.googleusercontent.com/FQJXx8B6Tbq7SvSE3wvJyXusFZxKcsY92eQaPnZj5pIDdXHVjs10tXXBqWcF0BgC_riSFcje2qUd-XWaiaJByI6dMOkEFdAtpeG7KK8xh7nH8KE3GfSOMrySKPVWXGdEvg=w1280" alt="Adople AI"></a><hr style="border-top: 5px solid white;"></div>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
|
91 |
state = gr.State(get_empty_state())
|
|
|
114 |
upload_button.upload(upload_file, upload_button, [file_output,state])
|
115 |
user_question.submit(answer_question, [user_question, state], [answer])
|
116 |
|
117 |
+
demo.launch()
|