Spaces:
Running
Running
mrfakename
commited on
Commit
โข
619c449
1
Parent(s):
7b02848
Update app.py
Browse files
app.py
CHANGED
@@ -414,6 +414,7 @@ with gr.Blocks() as leaderboard:
|
|
414 |
|
415 |
# vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
416 |
def synthandreturn(text):
|
|
|
417 |
if len(text) > MAX_SAMPLE_TXT_LENGTH:
|
418 |
raise gr.Error(f'You exceeded the limit of {MAX_SAMPLE_TXT_LENGTH} characters')
|
419 |
# Get two random models
|
@@ -492,7 +493,7 @@ with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}
|
|
492 |
if CITATION_TEXT:
|
493 |
with gr.Row():
|
494 |
with gr.Accordion("๐ Citation", open=False):
|
495 |
-
gr.Markdown(f"If you use this data in your publication, please cite!\n\nCopy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```")
|
496 |
|
497 |
|
498 |
demo.queue(api_open=False).launch(show_api=False)
|
|
|
414 |
|
415 |
# vote.load(reload, outputs=[aud1, aud2, model1, model2])
|
416 |
def synthandreturn(text):
|
417 |
+
text = text.strip()
|
418 |
if len(text) > MAX_SAMPLE_TXT_LENGTH:
|
419 |
raise gr.Error(f'You exceeded the limit of {MAX_SAMPLE_TXT_LENGTH} characters')
|
420 |
# Get two random models
|
|
|
493 |
if CITATION_TEXT:
|
494 |
with gr.Row():
|
495 |
with gr.Accordion("๐ Citation", open=False):
|
496 |
+
gr.Markdown(f"If you use this data in your publication, please cite us!\n\nCopy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```")
|
497 |
|
498 |
|
499 |
demo.queue(api_open=False).launch(show_api=False)
|