Spaces:
Sleeping
Sleeping
0.38a testing shuffle
Browse files
app.py
CHANGED
@@ -74,7 +74,6 @@ def apply_chat_template(messages, add_generation_prompt=False):
|
|
74 |
@spaces.GPU()
|
75 |
def generate_both(system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens=2048, temperature=0.2, top_p=0.9, repetition_penalty=1.1):
|
76 |
try:
|
77 |
-
logging.debug('Pass just once')
|
78 |
text_streamer_a = TextIteratorStreamer(tokenizer_a, skip_prompt=True)
|
79 |
text_streamer_b = TextIteratorStreamer(tokenizer_b, skip_prompt=True)
|
80 |
|
@@ -198,6 +197,7 @@ arena_notes = """## Important Notes:
|
|
198 |
|
199 |
with gr.Blocks() as demo:
|
200 |
try:
|
|
|
201 |
with gr.Column():
|
202 |
gr.HTML("<center><h1>🤖le Royale</h1></center>")
|
203 |
gr.Markdown(arena_notes)
|
|
|
74 |
@spaces.GPU()
|
75 |
def generate_both(system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens=2048, temperature=0.2, top_p=0.9, repetition_penalty=1.1):
|
76 |
try:
|
|
|
77 |
text_streamer_a = TextIteratorStreamer(tokenizer_a, skip_prompt=True)
|
78 |
text_streamer_b = TextIteratorStreamer(tokenizer_b, skip_prompt=True)
|
79 |
|
|
|
197 |
|
198 |
with gr.Blocks() as demo:
|
199 |
try:
|
200 |
+
logging.debug('Pass just once')
|
201 |
with gr.Column():
|
202 |
gr.HTML("<center><h1>🤖le Royale</h1></center>")
|
203 |
gr.Markdown(arena_notes)
|