Commit
·
c474bbd
1
Parent(s):
d3110df
Refactor generate_instruction_response function and optimize Gradio demo description
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ terminators = [
|
|
| 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 |
-
|
| 40 |
yield prompt_info
|
| 41 |
instruction = pipeline(
|
| 42 |
extract_input,
|
|
|
|
| 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 |
yield prompt_info
|
| 41 |
instruction = pipeline(
|
| 42 |
extract_input,
|