Spaces:
Sleeping
Sleeping
removal of pipeline transformer and autoconfig
Browse files
app.py
CHANGED
@@ -1,13 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
-
|
5 |
-
try:
|
6 |
-
config = AutoConfig.from_pretrained("microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
|
7 |
-
print("Model configuration loaded successfully:")
|
8 |
-
print(config)
|
9 |
-
except KeyError as e:
|
10 |
-
print(f"KeyError: {e}")
|
11 |
|
12 |
##############################################################################
|
13 |
# MASTER POLICY
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
##############################################################################
|
6 |
# MASTER POLICY
|