gururise commited on
Commit
fa36661
1 Parent(s): 30a53de

update app examples

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -212,19 +212,19 @@ def chat(
212
  examples = [
213
  [
214
  # Question Answering
215
- '''What are some good plans to collect all mosquitoes?''', "Q/A - EQHA", 256, 1.0, 0.85, -999, "<|endoftext|>"],
216
  [
217
  # Question Answering
218
- '''What are some good plans to collect all mosquitoes?''', "Q/A - AE", 256, 1.0, 0.85, -999, "<|endoftext|>"],
219
  [
220
  # Question Answering
221
- '''What is the capital of Germany?''', "Q/A - AE", 25, 0.2, 0.8, 0, "<|endoftext|>,\\n"],
222
  [
223
  # Question Answering
224
- '''Are humans good or bad?''', "Q/A - AE", 150, 0.8, 0.8, -1, "<|endoftext|>"],
225
  [
226
  # Question Answering
227
- '''What is the purpose of Vitamin A?''', "Q/A - AE", 60, 0.2, 0.8, 0, "<|endoftext|>"],
228
  [
229
  # Chatbot
230
  '''This is a conversation between two AI large language models named Alex and Fritz. They are exploring each other's capabilities, and trying to ask interesting questions of one another to explore the limits of each others AI.
@@ -232,7 +232,7 @@ examples = [
232
  Conversation:
233
  Alex: Good morning, Fritz, what type of LLM are you based upon?
234
  Fritz: Morning Alex, I am an RNN with transformer level performance. My language model is 100% attention free.
235
- Alex:''', "generative", 220, 0.9, 0.9, -3, "<|endoftext|>,\\n\\n"],
236
  [
237
  # Generate List
238
  '''Task given:
@@ -240,11 +240,11 @@ Alex:''', "generative", 220, 0.9, 0.9, -3, "<|endoftext|>,\\n\\n"],
240
  Please Write a Short story about a cat learning python
241
 
242
  Best Full Response:
243
- ''', "generative", 140, 0.85, 0.8, -3.5, "<|endoftext|>"],
244
  [
245
  # Natural Language Interface
246
  '''Here is a short story (in the style of Tolkien) in which Aiden attacks a robot with a sword:
247
- ''', "generative", 140, 0.85, 0.8, -3, "<|endoftext|>"]
248
  ]
249
 
250
 
@@ -269,7 +269,7 @@ iface = gr.Interface(
269
 
270
  chatiface = gr.Interface(
271
  fn=chat,
272
- description=f'''<h3>Chatbot</h3><h4>Refresh page or change name to reset memory context</h4>{desc}{thanks}''',
273
  allow_flagging="never",
274
  inputs=[
275
  gr.Textbox(lines=5, label="Message"), # prompt
@@ -279,7 +279,7 @@ chatiface = gr.Interface(
279
  gr.Slider(1, 256, value=60), # max_tokens
280
  gr.Slider(0.0, 1.0, value=0.8), # temperature
281
  gr.Slider(0.0, 1.0, value=0.85), # top_p
282
- gr.Slider(-99, 0.0, value=-2, step=0.5, label="Reduce End of Text Probability"), # end_adj
283
  ],
284
  outputs=[gr.Chatbot(label="Chat Log", color_map=(
285
  "green", "pink")), "state"],
 
212
  examples = [
213
  [
214
  # Question Answering
215
+ '''What is the capital of Germany?''', "Q/A - AE", 25, 0.2, 0.8, 0, "<|endoftext|>,\\n"],
216
  [
217
  # Question Answering
218
+ '''Are humans good or bad?''', "Q/A - AE", 150, 0.8, 0.8, 0, "<|endoftext|>"],
219
  [
220
  # Question Answering
221
+ '''What is the purpose of Vitamin A?''', "Q/A - AE", 60, 0.2, 0.8, 0, "<|endoftext|>,\\n"],
222
  [
223
  # Question Answering
224
+ '''What are some good plans to collect all mosquitoes?''', "Q/A - EQHA", 256, 1.0, 0.85, -999, "<|endoftext|>"],
225
  [
226
  # Question Answering
227
+ '''What are some good plans to collect all mosquitoes?''', "Q/A - AE", 256, 1.0, 0.85, -999, "<|endoftext|>"],
228
  [
229
  # Chatbot
230
  '''This is a conversation between two AI large language models named Alex and Fritz. They are exploring each other's capabilities, and trying to ask interesting questions of one another to explore the limits of each others AI.
 
232
  Conversation:
233
  Alex: Good morning, Fritz, what type of LLM are you based upon?
234
  Fritz: Morning Alex, I am an RNN with transformer level performance. My language model is 100% attention free.
235
+ Alex:''', "generative", 220, 0.9, 0.9, 0, "<|endoftext|>,\\n\\n"],
236
  [
237
  # Generate List
238
  '''Task given:
 
240
  Please Write a Short story about a cat learning python
241
 
242
  Best Full Response:
243
+ ''', "generative", 140, 0.85, 0.8, 0, "<|endoftext|>"],
244
  [
245
  # Natural Language Interface
246
  '''Here is a short story (in the style of Tolkien) in which Aiden attacks a robot with a sword:
247
+ ''', "generative", 140, 0.85, 0.8, 0, "<|endoftext|>"]
248
  ]
249
 
250
 
 
269
 
270
  chatiface = gr.Interface(
271
  fn=chat,
272
+ description=f'''<h3>Chatbot</h3><h4>Refresh page or change name to reset memory context</h4><p><b>Note:</b> First reply can take 60+ seconds due to loading context.</p>{desc}{thanks}''',
273
  allow_flagging="never",
274
  inputs=[
275
  gr.Textbox(lines=5, label="Message"), # prompt
 
279
  gr.Slider(1, 256, value=60), # max_tokens
280
  gr.Slider(0.0, 1.0, value=0.8), # temperature
281
  gr.Slider(0.0, 1.0, value=0.85), # top_p
282
+ gr.Slider(-99, 0.0, value=0, step=0.5, label="Reduce End of Text Probability"), # end_adj
283
  ],
284
  outputs=[gr.Chatbot(label="Chat Log", color_map=(
285
  "green", "pink")), "state"],