Spaces:
Running
Running
Commit
•
975546a
1
Parent(s):
68755f3
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,13 @@ from groq import Groq
|
|
3 |
import gradio as gr
|
4 |
from transformers import AutoModel, AutoConfig
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
9 |
client = Groq(api_key = os.environ.get("GROQ_API_KEY"), )
|
10 |
|
11 |
|
|
|
3 |
import gradio as gr
|
4 |
from transformers import AutoModel, AutoConfig
|
5 |
|
6 |
+
try:
|
7 |
+
config = AutoConfig.from_pretrained("HusseinEid/lora_model", config_file_name="adapter_config.json")
|
8 |
+
model = AutoModel.from_pretrained("HusseinEid/lora_model", config=config)
|
9 |
+
|
10 |
+
except OSError as e:
|
11 |
+
print(f"Error: {e}")
|
12 |
+
|
13 |
client = Groq(api_key = os.environ.get("GROQ_API_KEY"), )
|
14 |
|
15 |
|