Spaces:
Runtime error
Runtime error
MohammedAlakhras
commited on
Commit
•
c633f3a
1
Parent(s):
91cbb8c
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import torch
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
|
|
|
3 |
|
4 |
# Define the device
|
5 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
1 |
import torch
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
|
3 |
+
import gradio as gr
|
4 |
|
5 |
# Define the device
|
6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|