Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,8 @@ llm1 = HuggingFaceHub(repo_id=llama_repo, task="text-generation", model_kwargs=m
|
|
49 |
llm2 = HuggingFaceHub(repo_id=starchat_repo, task="text-generation", model_kwargs=model_kwargs)
|
50 |
llm3 = HuggingFaceHub(repo_id=bloom_repo, task="text-generation", model_kwargs=bloom_model_kwargs)
|
51 |
|
|
|
|
|
52 |
def translation(source, target, text):
|
53 |
response = text
|
54 |
try:
|
|
|
49 |
llm2 = HuggingFaceHub(repo_id=starchat_repo, task="text-generation", model_kwargs=model_kwargs)
|
50 |
llm3 = HuggingFaceHub(repo_id=bloom_repo, task="text-generation", model_kwargs=bloom_model_kwargs)
|
51 |
|
52 |
+
client = InferenceClient()
|
53 |
+
|
54 |
def translation(source, target, text):
|
55 |
response = text
|
56 |
try:
|