Update app.py
Browse files
app.py
CHANGED
@@ -9,13 +9,13 @@ class Z(object):
|
|
9 |
def init(self):
|
10 |
pass
|
11 |
|
12 |
-
def greet(self,
|
13 |
|
14 |
-
prompt00 = '
|
15 |
|
16 |
response0 = llm(prompt00, max_new_tokens=128, temperature=0.5) # 0.3
|
17 |
|
18 |
-
return f'
|
19 |
|
20 |
from ctransformers import AutoModelForCausalLM
|
21 |
|
|
|
9 |
def init(self):
|
10 |
pass
|
11 |
|
12 |
+
def greet(self, txt0):
|
13 |
|
14 |
+
prompt00 = f'Question: {txt0} Answer:'
|
15 |
|
16 |
response0 = llm(prompt00, max_new_tokens=128, temperature=0.5) # 0.3
|
17 |
|
18 |
+
return f'{response0}'
|
19 |
|
20 |
from ctransformers import AutoModelForCausalLM
|
21 |
|