Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from PIL import Image
|
| 3 |
import gradio as gr
|
| 4 |
import spaces
|
| 5 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 6 |
import os
|
| 7 |
-
|
| 8 |
from polyglot.detect import Detector
|
| 9 |
|
| 10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
@@ -89,8 +88,7 @@ CSS = """
|
|
| 89 |
}
|
| 90 |
"""
|
| 91 |
DESCRIPTION = """
|
| 92 |
-
|
| 93 |
-
- Source Language auto detected, input your Target language and country.
|
| 94 |
"""
|
| 95 |
|
| 96 |
chatbot = gr.Chatbot(height=600)
|
|
|
|
| 1 |
import torch
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import spaces
|
| 4 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 5 |
import os
|
| 6 |
+
import re
|
| 7 |
from polyglot.detect import Detector
|
| 8 |
|
| 9 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
|
|
| 88 |
}
|
| 89 |
"""
|
| 90 |
DESCRIPTION = """
|
| 91 |
+
LLaMAX is a language model with powerful multilingual capabilities without loss instruction-following capabilities.
|
|
|
|
| 92 |
"""
|
| 93 |
|
| 94 |
chatbot = gr.Chatbot(height=600)
|