Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
bd30708
1
Parent(s):
6f8a3e7
New API
Browse files
app.py
CHANGED
@@ -18,14 +18,15 @@ def giga_gen(content, chat_history):
|
|
18 |
res = generate(content,'auth_token.json')
|
19 |
chat_history.append((content, res))
|
20 |
send_to_s3(res, f'protobench/giga_{str(datetime.now()).replace(" ", "_")}.json', S3_SESSION)
|
21 |
-
|
|
|
22 |
|
23 |
def tiny_gen(content, chat_history):
|
24 |
res = response_tiny_llama(TINY_LLAMA, content)
|
25 |
chat_history.append((content, res))
|
26 |
send_to_s3(res, f'protobench/tiny_{str(datetime.now()).replace(" ", "_")}.json', S3_SESSION)
|
27 |
-
|
28 |
-
|
29 |
|
30 |
def tab_arena():
|
31 |
with gradio.Row():
|
|
|
18 |
res = generate(content,'auth_token.json')
|
19 |
chat_history.append((content, res))
|
20 |
send_to_s3(res, f'protobench/giga_{str(datetime.now()).replace(" ", "_")}.json', S3_SESSION)
|
21 |
+
print(chat_history)
|
22 |
+
return '', chat_history
|
23 |
|
24 |
def tiny_gen(content, chat_history):
|
25 |
res = response_tiny_llama(TINY_LLAMA, content)
|
26 |
chat_history.append((content, res))
|
27 |
send_to_s3(res, f'protobench/tiny_{str(datetime.now()).replace(" ", "_")}.json', S3_SESSION)
|
28 |
+
print(chat_history)
|
29 |
+
return '', chat_history
|
30 |
|
31 |
def tab_arena():
|
32 |
with gradio.Row():
|