Spaces:
Running
Running
Commit
·
07aca08
1
Parent(s):
07277a8
Actualy added markdown support
Browse files
main.py
CHANGED
@@ -71,6 +71,7 @@ footer {visibility: hidden;}
|
|
71 |
-webkit-text-fill-color: transparent;
|
72 |
animation: fireAnimation 3s linear infinite;
|
73 |
}
|
|
|
74 |
@keyframes fireAnimation {
|
75 |
0% { background-position: 0%; }
|
76 |
50% { background-position: 100%; }
|
@@ -136,14 +137,15 @@ with gr.Blocks(css=css_custom, theme=gr.themes.Monochrome()) as demo:
|
|
136 |
|
137 |
# Wrap the file and text inputs in a centered container.
|
138 |
with gr.Row(elem_classes="center"):
|
139 |
-
|
140 |
-
|
|
|
141 |
|
142 |
outputs=gr.Markdown(label="Roast Result")
|
143 |
submit_btn = gr.Button("Roast It!")
|
144 |
|
145 |
input_method.change(fn=toggle_inputs, inputs=input_method, outputs=[pdf_file, resume_text])
|
146 |
-
submit_btn.click(fn=process_resume, inputs=[input_method, resume_text, pdf_file], outputs=
|
147 |
|
148 |
gr.Markdown(
|
149 |
"""
|
|
|
71 |
-webkit-text-fill-color: transparent;
|
72 |
animation: fireAnimation 3s linear infinite;
|
73 |
}
|
74 |
+
|
75 |
@keyframes fireAnimation {
|
76 |
0% { background-position: 0%; }
|
77 |
50% { background-position: 100%; }
|
|
|
137 |
|
138 |
# Wrap the file and text inputs in a centered container.
|
139 |
with gr.Row(elem_classes="center"):
|
140 |
+
pdf_file = gr.File(label="Upload Resume PDF", file_types=[".pdf"], visible=True)
|
141 |
+
resume_text = gr.Textbox(label="Resume Text", lines=10, visible=False, elem_id="wide-textbox")
|
142 |
+
|
143 |
|
144 |
outputs=gr.Markdown(label="Roast Result")
|
145 |
submit_btn = gr.Button("Roast It!")
|
146 |
|
147 |
input_method.change(fn=toggle_inputs, inputs=input_method, outputs=[pdf_file, resume_text])
|
148 |
+
submit_btn.click(fn=process_resume, inputs=[input_method, resume_text, pdf_file], outputs=outputs)
|
149 |
|
150 |
gr.Markdown(
|
151 |
"""
|