Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
423df56
1
Parent(s):
5a0923a
Refactor generate_instruction_response function and optimize Gradio demo description
Browse files
app.py
CHANGED
@@ -35,9 +35,9 @@ terminators = [
|
|
35 |
|
36 |
@spaces.GPU
|
37 |
def generate_instruction_response():
|
38 |
-
prompt_info =
|
39 |
-
|
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,
|