Karthikeyan commited on
Commit
44e7e2f
1 Parent(s): a5fd691

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -19
app.py CHANGED
@@ -97,31 +97,21 @@ with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
97
  state = gr.State(get_empty_state())
98
  gr.HTML(title)
99
  with gr.Column(elem_id="col-container"):
100
-
101
- gr.HTML(
102
- """<br>
103
- <h1 style="text-align:center;">
104
- Adople AI Document QA Model
105
- </h1> """
106
- )
107
  gr.HTML(
108
  """<hr style="border-top: 5px solid white;">"""
109
  )
110
 
111
  gr.Markdown("**Upload your file**")
112
  with gr.Row(elem_id="row-flex"):
113
- with gr.Column(scale=0.85):
114
- file_url = gr.Textbox(
115
- value="",
116
- label="Upload your file",
117
- placeholder="Enter a url",
118
- show_label=False,
119
- visible=False
120
- )
121
- with gr.Column(scale=0.15, min_width=160):
122
- upload_button = gr.UploadButton(
123
- "Browse File", file_types=[".txt", ".pdf", ".doc", ".docx"],
124
- )
125
  file_output = gr.File(elem_classes="filenameshow")
126
  with gr.Row():
127
  with gr.Column(scale=1, min_width=0):
 
97
  state = gr.State(get_empty_state())
98
  gr.HTML(title)
99
  with gr.Column(elem_id="col-container"):
 
 
 
 
 
 
 
100
  gr.HTML(
101
  """<hr style="border-top: 5px solid white;">"""
102
  )
103
 
104
  gr.Markdown("**Upload your file**")
105
  with gr.Row(elem_id="row-flex"):
106
+ with gr.Column(scale=0.85):
107
+ file_url = gr.Textbox(
108
+ value="",
109
+ label="Upload your file",
110
+ placeholder="Enter a url",
111
+ show_label=False,
112
+ visible=False)
113
+ with gr.Column(scale=0.15, min_width=160):
114
+ upload_button = gr.UploadButton("Browse File", file_types=[".txt", ".pdf", ".doc", ".docx"])
 
 
 
115
  file_output = gr.File(elem_classes="filenameshow")
116
  with gr.Row():
117
  with gr.Column(scale=1, min_width=0):