ruggsea commited on
Commit
b3c93fa
·
1 Parent(s): a4e396f
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -44,7 +44,7 @@ def generate(
44
  top_p: float = 0.9,
45
  top_k: int = 50,
46
  repetition_penalty: float = 1.1,
47
- ) -> list[tuple[str, str]]:
48
  if chat_history is None:
49
  chat_history = []
50
 
@@ -165,13 +165,13 @@ def create_demo() -> gr.Blocks:
165
 
166
  gr.Examples(
167
  examples=[
168
- ["What is the trolley problem and what are its main ethical implications?"],
169
- ["Can you explain Plato's Theory of Forms?"],
170
- ["What is the difference between analytic and continental philosophy?"],
171
- ["How does Kant's Categorical Imperative work?"],
172
- ["What is the problem of consciousness in philosophy of mind?"],
173
  ],
174
- inputs=[msg],
175
  fn=lambda x: generate(x, [], system_prompt.value, max_new_tokens.value, temperature.value, top_p.value, top_k.value, repetition_penalty.value),
176
  outputs=chatbot,
177
  cache_examples=True,
 
44
  top_p: float = 0.9,
45
  top_k: int = 50,
46
  repetition_penalty: float = 1.1,
47
+ ) -> Iterator[list[tuple[str, str]]]:
48
  if chat_history is None:
49
  chat_history = []
50
 
 
165
 
166
  gr.Examples(
167
  examples=[
168
+ "What is the trolley problem and what are its main ethical implications?",
169
+ "Can you explain Plato's Theory of Forms?",
170
+ "What is the difference between analytic and continental philosophy?",
171
+ "How does Kant's Categorical Imperative work?",
172
+ "What is the problem of consciousness in philosophy of mind?",
173
  ],
174
+ inputs=msg,
175
  fn=lambda x: generate(x, [], system_prompt.value, max_new_tokens.value, temperature.value, top_p.value, top_k.value, repetition_penalty.value),
176
  outputs=chatbot,
177
  cache_examples=True,