Spaces:
Runtime error
Runtime error
Moritz Stephan
commited on
Commit
·
dd27d00
1
Parent(s):
2e744f0
fixing dropdown
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ def warmup(*args):
|
|
38 |
# Warmup the server but don't wait for the response
|
39 |
threading.Thread(target=requests.post, args=(f"{ENDPOINT_URL}/warmup"), kwargs={"json": args}, daemon=True).start()
|
40 |
|
|
|
41 |
|
42 |
demo = gr.Interface(
|
43 |
get_completion,
|
@@ -46,7 +47,7 @@ demo = gr.Interface(
|
|
46 |
placeholder="Enter a prompt...", label="Prompt"
|
47 |
),
|
48 |
gr.Dropdown(
|
49 |
-
label="Feedback", info="Will add the adapter for the respective feedback to the model."
|
50 |
)
|
51 |
],
|
52 |
"text",
|
|
|
38 |
# Warmup the server but don't wait for the response
|
39 |
threading.Thread(target=requests.post, args=(f"{ENDPOINT_URL}/warmup"), kwargs={"json": args}, daemon=True).start()
|
40 |
|
41 |
+
dropdown_options = get_feedback_options()
|
42 |
|
43 |
demo = gr.Interface(
|
44 |
get_completion,
|
|
|
47 |
placeholder="Enter a prompt...", label="Prompt"
|
48 |
),
|
49 |
gr.Dropdown(
|
50 |
+
choices=dropdown_options, label="Feedback", info="Will add the adapter for the respective feedback to the model."
|
51 |
)
|
52 |
],
|
53 |
"text",
|