Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
3 |
import torch
|
4 |
-
model_name = "ruslanmv/Medical-Llama3-8B"
|
5 |
device_map = 'auto'
|
6 |
# Check if GPU is available
|
7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
3 |
import torch
|
4 |
+
model_name = "ruslanmv/Medical-Llama3-8B"
|
5 |
device_map = 'auto'
|
6 |
# Check if GPU is available
|
7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|