Felladrin commited on
Commit
c8b330d
1 Parent(s): e458505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -35,18 +35,18 @@ def generate(
35
 
36
  return outputs[0]["generated_text"]
37
 
38
- model_choices = ["Felladrin/Llama-160M-Chat-v1", "Felladrin/Smol-Llama-101M-Chat-v1", "Felladrin/TinyMistral-248M-SFT-v4", "Felladrin/Pythia-31M-Chat-v1"]
39
 
40
  g = gr.Interface(
41
  fn=generate,
42
  inputs=[
43
  gr.components.Dropdown(choices=model_choices, label="Model", value=model_choices[0], interactive=True),
44
- gr.components.Textbox(lines=2, label="System Message", value="You are a highly knowledgeable and friendly assistant. Your goal is to understand and respond to user inquiries with accuracy and clarity. Your interactions are always respectful, helpful, and focused on delivering the most relevant information to the user."),
45
- gr.components.Textbox(lines=2, label="User Initial Message", value="Hi!"),
46
- gr.components.Textbox(lines=2, label="Assistant Initial Message", value="Hello there. How can I assist you today?"),
47
- gr.components.Textbox(lines=2, label="User Message", value="Tell me something curious about the Earth!"),
48
  ],
49
- outputs=[gr.Textbox(lines=10, label="Output")],
50
  title="A place to try out text-generation models fine-tuned by Felladrin",
51
  concurrency_limit=1
52
  )
 
35
 
36
  return outputs[0]["generated_text"]
37
 
38
+ model_choices = ["Felladrin/Pythia-31M-Chat-v1", "Felladrin/Smol-Llama-101M-Chat-v1", "Felladrin/Llama-160M-Chat-v1", "Felladrin/TinyMistral-248M-SFT-v4"]
39
 
40
  g = gr.Interface(
41
  fn=generate,
42
  inputs=[
43
  gr.components.Dropdown(choices=model_choices, label="Model", value=model_choices[0], interactive=True),
44
+ gr.components.Textbox(lines=2, label="System Message", value="You are a highly knowledgeable and friendly assistant. Your goal is to understand and respond to user inquiries with clarity. Your interactions are always respectful, helpful, and focused on delivering the most accurate information to the user."),
45
+ gr.components.Textbox(lines=2, label="User Initial Message", value="Hey! Got a question for you!"),
46
+ gr.components.Textbox(lines=2, label="Assistant Initial Message", value="Sure! What's it?"),
47
+ gr.components.Textbox(lines=2, label="User Message", value="Can you list some potential applications for quantum computing?"),
48
  ],
49
+ outputs=[gr.Textbox(lines=24, label="Output")],
50
  title="A place to try out text-generation models fine-tuned by Felladrin",
51
  concurrency_limit=1
52
  )