srijaydeshpande commited on
Commit
f2bc9af
·
verified ·
1 Parent(s): 8e3121f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def craft_cv(llm, cv_text, prompt, maxtokens, temperature, top_probability):
92
  )
93
  output = output['choices'][0]['message']['content']
94
 
95
- return output
96
 
97
  @spaces.GPU(duration=150)
98
  def pdf_to_text(cv_file, prompt, maxtokens=2048, temperature=0, top_probability=0.95):
@@ -119,7 +119,7 @@ output_text = gr.Textbox()
119
  iface = gr.Interface(
120
  fn=pdf_to_text,
121
  inputs=[cv_file, prompt_text],
122
- outputs=output_text,
123
  title='Craft CV',
124
  description="This application assists to customize CV based on input job description",
125
  theme=gr.themes.Soft(),
 
92
  )
93
  output = output['choices'][0]['message']['content']
94
 
95
+ return cv_text, output
96
 
97
  @spaces.GPU(duration=150)
98
  def pdf_to_text(cv_file, prompt, maxtokens=2048, temperature=0, top_probability=0.95):
 
119
  iface = gr.Interface(
120
  fn=pdf_to_text,
121
  inputs=[cv_file, prompt_text],
122
+ outputs=['text', 'text'],
123
  title='Craft CV',
124
  description="This application assists to customize CV based on input job description",
125
  theme=gr.themes.Soft(),