Spaces:
Sleeping
Sleeping
Commit
·
17e1a10
1
Parent(s):
c2431d6
4th
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ device = 'cpu'
|
|
8 |
|
9 |
class Generator:
|
10 |
def __init__(self) -> None:
|
11 |
-
self.generator = pipeline('text-generation', model="EleutherAI/gpt-neo-
|
12 |
self.history = "Human: Can you tell me the weather forecast for tomorrow?\nAssistant: Try checking a weather app like a normal person.\nHuman: Can you help me find a good restaurant in the area\nAssistant: Try asking someone with a functioning sense of taste.\n"
|
13 |
|
14 |
def generate(self, text, max_len=400, temp=0.8):
|
|
|
8 |
|
9 |
class Generator:
|
10 |
def __init__(self) -> None:
|
11 |
+
self.generator = pipeline('text-generation', model="EleutherAI/gpt-neo-125M", do_sample=True)
|
12 |
self.history = "Human: Can you tell me the weather forecast for tomorrow?\nAssistant: Try checking a weather app like a normal person.\nHuman: Can you help me find a good restaurant in the area\nAssistant: Try asking someone with a functioning sense of taste.\n"
|
13 |
|
14 |
def generate(self, text, max_len=400, temp=0.8):
|