smakamali commited on
Commit
e052dfd
1 Parent(s): bcc3d69

change the default value of the Temperature param

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -246,7 +246,7 @@ def summarize_text(title,text,temperature,words,use_api=False,api_token=None,do_
246
  PARTIAL SUMMARIES:\n
247
  `{doc_summaries}`\n
248
  ----------------------- \n
249
- Generate an executive summary of the whole text in maximum {words} words that contains the main messages, points, and arguments presented in the video.\n
250
  EXECUTIVE SUMMARY:\n
251
  """
252
  combine_prompt = PromptTemplate(
@@ -360,7 +360,7 @@ with gr.Blocks() as demo:
360
  with gr.Row():
361
  # use_llm_api = gr.Checkbox(label="Summarize using the HuggingFaceHub API.",visible=True)
362
  do_sample = gr.Checkbox(label="Set the Temperature",value=True,visible=True)
363
- temperature = gr.Slider(minimum=0,maximum=1,value=1.0,label="Generation temperature",visible=True)
364
  words = gr.Slider(minimum=100,maximum=500,value=100,label="Length of the summary")
365
 
366
  gr.Markdown("# Results")
 
246
  PARTIAL SUMMARIES:\n
247
  `{doc_summaries}`\n
248
  ----------------------- \n
249
+ Generate an executive summary of the whole text in maximum {words} words that contains the main messages, points, and arguments presented in the video as bullet points.\n
250
  EXECUTIVE SUMMARY:\n
251
  """
252
  combine_prompt = PromptTemplate(
 
360
  with gr.Row():
361
  # use_llm_api = gr.Checkbox(label="Summarize using the HuggingFaceHub API.",visible=True)
362
  do_sample = gr.Checkbox(label="Set the Temperature",value=True,visible=True)
363
+ temperature = gr.Slider(minimum=0.01,maximum=1.0,value=0.25,label="Generation temperature",visible=True)
364
  words = gr.Slider(minimum=100,maximum=500,value=100,label="Length of the summary")
365
 
366
  gr.Markdown("# Results")