Spaces:
Build error
Build error
reverted to original folder organization
Browse files- samples/additional_resume_context.txt β additional_resume_context.txt +0 -0
- app.py +12 -12
- samples/cover_letter_sample.txt β cover_letter_sample.txt +0 -0
- samples/freeform_context.txt β freeform_context.txt +0 -0
- samples/full_cv.yaml β full_cv.yaml +0 -0
- samples/job_description.txt β job_description.txt +0 -0
- samples/summary_sample.txt β summary_sample.txt +0 -0
samples/additional_resume_context.txt β additional_resume_context.txt
RENAMED
|
File without changes
|
app.py
CHANGED
|
@@ -56,20 +56,20 @@ with gr.Blocks() as demo:
|
|
| 56 |
|
| 57 |
### File management
|
| 58 |
|
| 59 |
-
job_desc_file = gr.File(label="Job Description", value="
|
| 60 |
-
resume_file = gr.File(label="Resume YAML", value="
|
| 61 |
-
extra_resume_context_file = gr.File(label="Additional Resume Context", value="
|
| 62 |
-
freeform_context_file = gr.File(label="Additional Freeform Context", value="
|
| 63 |
-
summary_sample_file = gr.File(label="Resume Summary Writing Sample", value="
|
| 64 |
-
cover_letter_sample_file = gr.File(label="Cover Letter Writing Sample", value="
|
| 65 |
|
| 66 |
# Create States that store ontent as variables
|
| 67 |
-
job_desc_content = gr.State(load_txt_file("
|
| 68 |
-
resume_content = gr.State(load_initial_resume("
|
| 69 |
-
extra_resume_context_content = gr.State(load_txt_file("
|
| 70 |
-
freeform_context_content = gr.State(load_txt_file("
|
| 71 |
-
summary_sample_content = gr.State(load_txt_file("
|
| 72 |
-
cover_letter_sample_content = gr.State(load_txt_file("
|
| 73 |
|
| 74 |
# If a file is uploaded, automatically update the respective variable storing its contents
|
| 75 |
job_desc_file.upload(fn=load_txt_file, inputs=[job_desc_file], outputs=[job_desc_content])
|
|
|
|
| 56 |
|
| 57 |
### File management
|
| 58 |
|
| 59 |
+
job_desc_file = gr.File(label="Job Description", value="job_description.txt")
|
| 60 |
+
resume_file = gr.File(label="Resume YAML", value="full_cv.yaml")
|
| 61 |
+
extra_resume_context_file = gr.File(label="Additional Resume Context", value="additional_resume_context.txt")
|
| 62 |
+
freeform_context_file = gr.File(label="Additional Freeform Context", value="freeform_context.txt")
|
| 63 |
+
summary_sample_file = gr.File(label="Resume Summary Writing Sample", value="summary_sample.txt")
|
| 64 |
+
cover_letter_sample_file = gr.File(label="Cover Letter Writing Sample", value="cover_letter_sample.txt")
|
| 65 |
|
| 66 |
# Create States that store ontent as variables
|
| 67 |
+
job_desc_content = gr.State(load_txt_file("job_description.txt"))
|
| 68 |
+
resume_content = gr.State(load_initial_resume("full_cv.yaml"))
|
| 69 |
+
extra_resume_context_content = gr.State(load_txt_file("additional_resume_context.txt"))
|
| 70 |
+
freeform_context_content = gr.State(load_txt_file("freeform_context.txt"))
|
| 71 |
+
summary_sample_content = gr.State(load_txt_file("summary_sample.txt"))
|
| 72 |
+
cover_letter_sample_content = gr.State(load_txt_file("cover_letter_sample.txt"))
|
| 73 |
|
| 74 |
# If a file is uploaded, automatically update the respective variable storing its contents
|
| 75 |
job_desc_file.upload(fn=load_txt_file, inputs=[job_desc_file], outputs=[job_desc_content])
|
samples/cover_letter_sample.txt β cover_letter_sample.txt
RENAMED
|
File without changes
|
samples/freeform_context.txt β freeform_context.txt
RENAMED
|
File without changes
|
samples/full_cv.yaml β full_cv.yaml
RENAMED
|
File without changes
|
samples/job_description.txt β job_description.txt
RENAMED
|
File without changes
|
samples/summary_sample.txt β summary_sample.txt
RENAMED
|
File without changes
|