Spaces:
Running
on
A10G
Running
on
A10G
artificialguybr
commited on
Commit
•
947e089
1
Parent(s):
3c6c3e5
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def _launch_demo(args, model, tokenizer, config):
|
|
76 |
|
77 |
print(f"History: {_task_history}")
|
78 |
_task_history.append((_query, full_response))
|
79 |
-
print(f"
|
80 |
|
81 |
def regenerate(_chatbot, _task_history):
|
82 |
if not _task_history:
|
@@ -103,7 +103,7 @@ def _launch_demo(args, model, tokenizer, config):
|
|
103 |
**Space created by [@artificialguybr](https://twitter.com/artificialguybr). Model by [@Teknium1](https://twitter.com/Teknium1).Thanks HF for GPU!**
|
104 |
**OpenHermes V2 Mistral 7B was trained on 900,000 instructions, and surpasses all previous versions of Hermes 13B and below, and matches 70B on some benchmarks!**
|
105 |
""")
|
106 |
-
chatbot = gr.Chatbot(label='
|
107 |
query = gr.Textbox(lines=2, label='Input')
|
108 |
task_history = gr.State([])
|
109 |
|
|
|
76 |
|
77 |
print(f"History: {_task_history}")
|
78 |
_task_history.append((_query, full_response))
|
79 |
+
print(f"OpenHermes: {_parse_text(full_response)}")
|
80 |
|
81 |
def regenerate(_chatbot, _task_history):
|
82 |
if not _task_history:
|
|
|
103 |
**Space created by [@artificialguybr](https://twitter.com/artificialguybr). Model by [@Teknium1](https://twitter.com/Teknium1).Thanks HF for GPU!**
|
104 |
**OpenHermes V2 Mistral 7B was trained on 900,000 instructions, and surpasses all previous versions of Hermes 13B and below, and matches 70B on some benchmarks!**
|
105 |
""")
|
106 |
+
chatbot = gr.Chatbot(label='OpenHermes-V2', elem_classes="control-height", queue=True)
|
107 |
query = gr.Textbox(lines=2, label='Input')
|
108 |
task_history = gr.State([])
|
109 |
|