Spaces:
Runtime error
Runtime error
Update interaction.py
Browse files- interaction.py +2 -2
interaction.py
CHANGED
|
@@ -10,7 +10,7 @@ from utils import SteamGenerationMixin
|
|
| 10 |
|
| 11 |
auth_token = os.getenv("Zimix")
|
| 12 |
print('^_^ auth_token:',os.getenv("Zimix"),'!!!!!!!!!!')
|
| 13 |
-
|
| 14 |
class MindBot(object):
|
| 15 |
def __init__(self, model_path, tokenizer_path,if_int8=False):
|
| 16 |
# self.device = torch.device("cuda")
|
|
@@ -117,7 +117,7 @@ class MindBot(object):
|
|
| 117 |
|
| 118 |
with gr.Blocks(title='IDEA Ziya', css=".gradio-container {max-width: 50% !important;} .bgcolor {color: white !important; background: #FFA500 !important;}") as demo:
|
| 119 |
gr.Markdown("<center><h1>IDEA Ziya</h1></center>")
|
| 120 |
-
gr.Markdown("<center>本页面基于hugging face
|
| 121 |
with gr.Row():
|
| 122 |
chatbot = gr.Chatbot(label='Ziya').style(height=500)
|
| 123 |
with gr.Row():
|
|
|
|
| 10 |
|
| 11 |
auth_token = os.getenv("Zimix")
|
| 12 |
print('^_^ auth_token:',os.getenv("Zimix"),'!!!!!!!!!!')
|
| 13 |
+
|
| 14 |
class MindBot(object):
|
| 15 |
def __init__(self, model_path, tokenizer_path,if_int8=False):
|
| 16 |
# self.device = torch.device("cuda")
|
|
|
|
| 117 |
|
| 118 |
with gr.Blocks(title='IDEA Ziya', css=".gradio-container {max-width: 50% !important;} .bgcolor {color: white !important; background: #FFA500 !important;}") as demo:
|
| 119 |
gr.Markdown("<center><h1>IDEA Ziya</h1></center>")
|
| 120 |
+
gr.Markdown("<center>本页面基于hugging face支持的设备搭建 模型版本v1.1</center>")
|
| 121 |
with gr.Row():
|
| 122 |
chatbot = gr.Chatbot(label='Ziya').style(height=500)
|
| 123 |
with gr.Row():
|