Spaces:
Running
Running
Karthikeyan
commited on
Commit
•
fee00c8
1
Parent(s):
ba27df6
Update app.py
Browse files
app.py
CHANGED
@@ -111,11 +111,11 @@ with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
|
|
111 |
upload_button = gr.UploadButton("Browse File", file_types=[".txt", ".pdf", ".doc", ".docx"])
|
112 |
file_output = gr.File(elem_classes="filenameshow")
|
113 |
with gr.Row():
|
114 |
-
|
115 |
-
|
116 |
with gr.Row():
|
117 |
-
|
118 |
-
|
119 |
|
120 |
file_url.submit(upload_via_url, file_url, [file_output, state])
|
121 |
upload_button.upload(upload_file, upload_button, [file_output,state])
|
|
|
111 |
upload_button = gr.UploadButton("Browse File", file_types=[".txt", ".pdf", ".doc", ".docx"])
|
112 |
file_output = gr.File(elem_classes="filenameshow")
|
113 |
with gr.Row():
|
114 |
+
with gr.Column(scale=1, min_width=0):
|
115 |
+
user_question = gr.Textbox(value="",label='Question Box :',show_label=True, placeholder="Ask a question about your file:",elem_classes="spaceH")
|
116 |
with gr.Row():
|
117 |
+
with gr.Column(scale=1, min_width=0):
|
118 |
+
answer = gr.Textbox(value="",label='Answer Box :',show_label=True, placeholder="",lines=5)
|
119 |
|
120 |
file_url.submit(upload_via_url, file_url, [file_output, state])
|
121 |
upload_button.upload(upload_file, upload_button, [file_output,state])
|