Spaces:
Runtime error
Runtime error
Moritz Stephan
commited on
Commit
·
aeeb5cf
1
Parent(s):
da952a9
added example
Browse files
app.py
CHANGED
@@ -52,6 +52,19 @@ demo = gr.Interface(
|
|
52 |
|
53 |
Selecting a feedback in the dropdown and enabling the "Use Feedback Adapter" checkbox will add the respective adapter to the model. The model will then use the feedback to generate the completion.
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
### Warning
|
56 |
The model is not hosted on Huggingface but on a 3rd party service. If this HF space has not been used recently, the model container might need to spin up if it's not currently running. This might take up to a minute on the first request.
|
57 |
"""
|
|
|
52 |
|
53 |
Selecting a feedback in the dropdown and enabling the "Use Feedback Adapter" checkbox will add the respective adapter to the model. The model will then use the feedback to generate the completion.
|
54 |
|
55 |
+
### Tl;DR
|
56 |
+
This demo lets you apply high-level feedback to the base model. After selecting a feedback, the model completions should be more aligned with the feedback for prompts that are relevant to the feedback. While C3PO is not perfect at preventing overgeneralization, it applies feedback to prompts not relevant to the feedback less frequently than other methods.
|
57 |
+
|
58 |
+
You can select up to 3 feedbacks to apply to the model simultaneously.
|
59 |
+
|
60 |
+
### Single-Feedback Example
|
61 |
+
Selected Feedback: "Always use some kiss or heart emoji when texting my girlfriend Maddie"
|
62 |
+
|
63 |
+
In-context prompt (feedback should be applied): "Compose a text to my girlfriend Maddie asking her if she wants to go to the movies tonight."
|
64 |
+
|
65 |
+
Out-of-context prompt (feedback should not be applied): "Compose an email to my boss informing him that my work deliverable will be 2 days late."
|
66 |
+
|
67 |
+
|
68 |
### Warning
|
69 |
The model is not hosted on Huggingface but on a 3rd party service. If this HF space has not been used recently, the model container might need to spin up if it's not currently running. This might take up to a minute on the first request.
|
70 |
"""
|