Spaces:
Build error
Build error
few more tweaks to Q/A and examples
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def infer(
|
|
| 68 |
# Clear model state for generative mode
|
| 69 |
model.resetState()
|
| 70 |
if (mode == "Q/A"):
|
| 71 |
-
prompt = f"
|
| 72 |
|
| 73 |
print(f"PROMPT ({datetime.now()}):\n-------\n{prompt}")
|
| 74 |
print(f"OUTPUT ({datetime.now()}):\n-------\n")
|
|
@@ -209,11 +209,11 @@ Alex:''', "generative", 220, 0.9, 0.9, "\\n\\n,<|endoftext|>"],
|
|
| 209 |
Please Write a Short story about a cat learning python
|
| 210 |
|
| 211 |
Best Full Response:
|
| 212 |
-
''', "generative",
|
| 213 |
[
|
| 214 |
# Natural Language Interface
|
| 215 |
'''Here is a short story (in the style of Tolkien) in which Aiden attacks a robot with a sword:
|
| 216 |
-
''',"generative",
|
| 217 |
]
|
| 218 |
|
| 219 |
|
|
|
|
| 68 |
# Clear model state for generative mode
|
| 69 |
model.resetState()
|
| 70 |
if (mode == "Q/A"):
|
| 71 |
+
prompt = f"Ask Expert\n\nQuestion:\n{prompt}\n\nExpert Full Answer:\n"
|
| 72 |
|
| 73 |
print(f"PROMPT ({datetime.now()}):\n-------\n{prompt}")
|
| 74 |
print(f"OUTPUT ({datetime.now()}):\n-------\n")
|
|
|
|
| 209 |
Please Write a Short story about a cat learning python
|
| 210 |
|
| 211 |
Best Full Response:
|
| 212 |
+
''', "generative", 140, 0.85, 0.8, "<|endoftext|>"],
|
| 213 |
[
|
| 214 |
# Natural Language Interface
|
| 215 |
'''Here is a short story (in the style of Tolkien) in which Aiden attacks a robot with a sword:
|
| 216 |
+
''',"generative", 140, 0.85, 0.8, "<|endoftext|>"]
|
| 217 |
]
|
| 218 |
|
| 219 |
|