gururise commited on
Commit
fba8532
·
1 Parent(s): 3debe39

few more tweaks to Q/A and examples

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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"Q & A\n\nQuestion:\n{prompt}\n\nDetailed Expert Answer:\n"
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", 180, 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", 180, 0.85, 0.8, "<|endoftext|>"]
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