Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -9,7 +9,7 @@ token = os.environ.get("token")
|
|
| 9 |
|
| 10 |
def instantiate_gpt2(model_name: str,max_length_ : int, num_return_sequences : int, text : str) -> dict:
|
| 11 |
pipe = pipeline(task='text-generation', model=f'Iscte-Sintra/{model_name}', tokenizer=f'Iscte-Sintra/{model_name}', token=token, truncation=True)
|
| 12 |
-
if model_name
|
| 13 |
results = pipe(
|
| 14 |
text,
|
| 15 |
max_new_tokens=max_length_,
|
|
|
|
| 9 |
|
| 10 |
def instantiate_gpt2(model_name: str,max_length_ : int, num_return_sequences : int, text : str) -> dict:
|
| 11 |
pipe = pipeline(task='text-generation', model=f'Iscte-Sintra/{model_name}', tokenizer=f'Iscte-Sintra/{model_name}', token=token, truncation=True)
|
| 12 |
+
if model_name=="Qwen_v0.1":
|
| 13 |
results = pipe(
|
| 14 |
text,
|
| 15 |
max_new_tokens=max_length_,
|