davanstrien HF staff commited on
Commit
423df56
·
1 Parent(s): 5a0923a

Refactor generate_instruction_response function and optimize Gradio demo description

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,9 +35,9 @@ terminators = [
35
 
36
  @spaces.GPU
37
  def generate_instruction_response():
38
- prompt_info = (
39
- f"Generating a user prompt from the LLM via the template `{extract_input}` \n\n"
40
- )
41
  yield prompt_info
42
  instruction = pipeline(
43
  extract_input,
 
35
 
36
  @spaces.GPU
37
  def generate_instruction_response():
38
+ prompt_info = f"""Generating a user prompt from the LLM via the template \n\n
39
+ ```{extract_input}```
40
+ \n\n"""
41
  yield prompt_info
42
  instruction = pipeline(
43
  extract_input,