Karthikeyan commited on
Commit
5bded7b
·
1 Parent(s): 5f091d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -83,10 +83,7 @@ def answer_question(question, state):
83
  return response
84
  except:
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())
92
  with gr.Column(elem_id="col-container"):
@@ -109,7 +106,6 @@ with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
109
  with gr.Row():
110
  with gr.Column(scale=1, min_width=0):
111
  answer = gr.Textbox(value="",label='Answer Box :',show_label=True, placeholder="",lines=5)
112
-
113
  file_url.submit(upload_via_url, file_url, [file_output, state])
114
  upload_button.upload(upload_file, upload_button, [file_output,state])
115
  user_question.submit(answer_question, [user_question, state], [answer])
 
83
  return response
84
  except:
85
  return "Please upload Proper Document"
 
 
86
  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>"""
 
87
  with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
88
  state = gr.State(get_empty_state())
89
  with gr.Column(elem_id="col-container"):
 
106
  with gr.Row():
107
  with gr.Column(scale=1, min_width=0):
108
  answer = gr.Textbox(value="",label='Answer Box :',show_label=True, placeholder="",lines=5)
 
109
  file_url.submit(upload_via_url, file_url, [file_output, state])
110
  upload_button.upload(upload_file, upload_button, [file_output,state])
111
  user_question.submit(answer_question, [user_question, state], [answer])