Spaces:
Running
on
Zero
Running
on
Zero
Will Held
commited on
Commit
•
c286cf9
1
Parent(s):
1023b5d
Text Tweaks
Browse files
app.py
CHANGED
@@ -304,7 +304,7 @@ def recording_complete(state):
|
|
304 |
def responses_complete(state):
|
305 |
if state == 2:
|
306 |
gr.Info(
|
307 |
-
"Give us your feedback! Mark which model gave you the best response so we can understand the quality of these different voice assistant models."
|
308 |
)
|
309 |
state = 3
|
310 |
return state
|
@@ -318,7 +318,7 @@ def clear_factory(button_id):
|
|
318 |
db.insert(
|
319 |
{
|
320 |
"audio_hash": hash(str(y)),
|
321 |
-
"text_prompt": text_prompt,
|
322 |
"best": model_shorthand[model_order[button_id]],
|
323 |
}
|
324 |
)
|
@@ -374,7 +374,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
374 |
prompt = gr.Textbox(
|
375 |
value="",
|
376 |
label="Text Prompt",
|
377 |
-
placeholder="Optional: Additional text prompt to influence how the model responds to your speech. e.g. 'Respond in a Haiku style.'",
|
378 |
)
|
379 |
|
380 |
with gr.Row():
|
|
|
304 |
def responses_complete(state):
|
305 |
if state == 2:
|
306 |
gr.Info(
|
307 |
+
"Give us your feedback! Mark which model gave you the best response so we can understand the quality of these different voice assistant models. NOTE: This will save an (irreversible) hash of your inputs to deduplicate any repeated votes."
|
308 |
)
|
309 |
state = 3
|
310 |
return state
|
|
|
318 |
db.insert(
|
319 |
{
|
320 |
"audio_hash": hash(str(y)),
|
321 |
+
"text_prompt": hash(text_prompt),
|
322 |
"best": model_shorthand[model_order[button_id]],
|
323 |
}
|
324 |
)
|
|
|
374 |
prompt = gr.Textbox(
|
375 |
value="",
|
376 |
label="Text Prompt",
|
377 |
+
placeholder="Optional: Additional text prompt to influence how the model responds to your speech. e.g. 'Respond in a Haiku style.' or 'Translate the input to Arabic'",
|
378 |
)
|
379 |
|
380 |
with gr.Row():
|