Spaces:
Sleeping
Sleeping
Commit
·
56b199b
1
Parent(s):
4be1f1a
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def generate_dialogue(input_text):
|
|
23 |
pipe = pipeline(task="text-generation",model=model,tokenizer=tokenizer,max_length=200)
|
24 |
result = pipe(f"<s>[INST] {input_text} [/INST]")
|
25 |
|
26 |
-
return_answer = (result[0]['generated_text']).
|
27 |
return return_answer
|
28 |
|
29 |
HTML_TEMPLATE = """
|
|
|
23 |
pipe = pipeline(task="text-generation",model=model,tokenizer=tokenizer,max_length=200)
|
24 |
result = pipe(f"<s>[INST] {input_text} [/INST]")
|
25 |
|
26 |
+
return_answer = (result[0]['generated_text']).replace(input_text,'').replace('[INST]','').replace('[/INST]','').replace('<s>','').replace('>','')
|
27 |
return return_answer
|
28 |
|
29 |
HTML_TEMPLATE = """
|