Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,18 +35,18 @@ def generate(
|
|
35 |
|
36 |
return outputs[0]["generated_text"]
|
37 |
|
38 |
-
model_choices = ["Felladrin/
|
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
|
45 |
-
gr.components.Textbox(lines=2, label="User Initial Message", value="
|
46 |
-
gr.components.Textbox(lines=2, label="Assistant Initial Message", value="
|
47 |
-
gr.components.Textbox(lines=2, label="User Message", value="
|
48 |
],
|
49 |
-
outputs=[gr.Textbox(lines=
|
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 |
)
|